Passed
Push — master ( 32f6b3...6bd9ce )
by Amin
02:21
created

Streaming::setStrict()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
cc 1
eloc 2
c 1
b 0
f 0
nc 1
nop 1
dl 0
loc 4
rs 10
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
namespace Streaming;
13
14
use Streaming\Traits\Representations;
15
16
17
abstract class Streaming extends Export
18
{
19
    use Representations;
20
21
    /** @var string */
22
    private $strict = "-2";
23
24
    /** @var array */
25
    private $additional_params = [];
26
27
    /**
28
     * @return array
29
     */
30
    public function getAdditionalParams(): array
31
    {
32
        return $this->additional_params;
33
    }
34
35
    /**
36
     * @param array $additional_params
37
     * @return Export
38
     */
39
    public function setAdditionalParams(array $additional_params)
40
    {
41
        $this->additional_params = $additional_params;
42
        return $this;
43
    }
44
45
    /**
46
     * @param string $strict
47
     * @return Export
48
     */
49
    public function setStrict(string $strict): Export
50
    {
51
        $this->strict = $strict;
52
        return $this;
53
    }
54
55
    /**
56
     * @return string
57
     */
58
    public function getStrict(): string
59
    {
60
        return $this->strict;
61
    }
62
63
}