Passed
Push — master ( 3ee3fe...b14545 )
by Amin
04:48
created

DASH::setAdaption()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
eloc 2
dl 0
loc 4
rs 10
c 0
b 0
f 0
cc 1
nc 1
nop 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
namespace Streaming;
13
14
use Streaming\Filters\DASHFilter;
15
use Streaming\Traits\Representation as Representations;
16
use Streaming\Filters\Filter;
17
18
class DASH extends Export
19
{
20
    use Representations;
21
22
    /** @var string */
23
    protected $adaption;
24
25
    /**
26
     * @return mixed
27
     */
28
    public function getAdaption()
29
    {
30
        return $this->adaption;
31
    }
32
33
    /**
34
     * @param mixed $adaption
35
     * @return DASH
36
     */
37
    public function setAdaption(string $adaption): DASH
38
    {
39
        $this->adaption = $adaption;
40
        return $this;
41
    }
42
43
    /**
44
     * @return Filter
45
     */
46
    protected function getFilter(): Filter
47
    {
48
        return $this->filter;
49
    }
50
51
    /**
52
     * @return mixed|void
53
     */
54
    protected function setFilter()
55
    {
56
        $this->filter = new DASHFilter($this);
57
    }
58
}
59