Passed
Push — master ( 8db063...3a6957 )
by Amin
03:31
created

StreamFormat::setAdditionalParameters()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
cc 1
eloc 1
nc 1
nop 1
dl 0
loc 3
rs 10
c 1
b 0
f 0
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
}