Passed
Push — master ( b23da5...cc1845 )
by Amin
04:10
created

StreamFormat   A

Complexity

Total Complexity 3

Size/Duplication

Total Lines 27
Duplicated Lines 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
eloc 4
dl 0
loc 27
rs 10
c 1
b 0
f 0
wmc 3

3 Methods

Rating   Name   Duplication   Size   Complexity  
A setKiloBitrate() 0 3 1
A setAudioKiloBitrate() 0 3 1
A setAdditionalParameters() 0 3 1
1
<?php
2
3
/**
4
 * This file is part of the PHP-FFmpeg-video-streaming package.
5
 *
6
 * (c) Amin Yazdanpanah <[email protected]>
7
 *
8
 * For the full copyright and license information, please view the LICENSE
9
 * file that was distributed with this source code.
10
 */
11
12
13
namespace Streaming\Format;
14
15
16
use FFMpeg\Format\Video\DefaultVideo;
17
use Streaming\Exception\InvalidArgumentException;
18
19
abstract class StreamFormat extends DefaultVideo
20
{
21
    /**
22
     * @param int $kiloBitrate
23
     * @return DefaultVideo|void
24
     */
25
    public function setKiloBitrate($kiloBitrate)
26
    {
27
        throw new InvalidArgumentException("You can not set this option, use Representation instead");
28
    }
29
30
    /**
31
     * @param int $kiloBitrate
32
     * @return DefaultVideo|void
33
     */
34
    public function setAudioKiloBitrate($kiloBitrate)
35
    {
36
        throw new InvalidArgumentException("You can not set this option, use Representation instead");
37
    }
38
39
    /**
40
     * @param array $additionalParamaters
41
     * @return DefaultVideo|void
42
     */
43
    public function setAdditionalParameters($additionalParamaters)
44
    {
45
        throw new InvalidArgumentException("You can not set this option");
46
    }
47
}