Total Complexity | 8 |
Total Lines | 78 |
Duplicated Lines | 0 % |
Changes | 0 |
1 | <?php |
||
22 | class Media |
||
23 | { |
||
24 | |||
25 | protected $media; |
||
26 | /** |
||
27 | * @var string |
||
28 | */ |
||
29 | private $path; |
||
30 | /** |
||
31 | * @var bool |
||
32 | */ |
||
33 | private $is_tmp; |
||
34 | |||
35 | |||
36 | /** |
||
37 | * Media constructor. |
||
38 | * @param MediaTypeInterface $media |
||
39 | * @param string $path |
||
40 | * @param bool $is_tmp |
||
41 | */ |
||
42 | public function __construct(MediaTypeInterface $media, string $path, bool $is_tmp) |
||
47 | } |
||
48 | |||
49 | /** |
||
50 | * @return DASH |
||
51 | */ |
||
52 | public function DASH(): DASH |
||
53 | { |
||
54 | return new DASH($this); |
||
55 | } |
||
56 | |||
57 | /** |
||
58 | * @return HLS |
||
59 | */ |
||
60 | public function HLS(): HLS |
||
61 | { |
||
62 | return new HLS($this); |
||
63 | } |
||
64 | |||
65 | /** |
||
66 | * @param $argument |
||
67 | * @return Media |
||
68 | */ |
||
69 | protected function isInstanceofArgument($argument) |
||
72 | } |
||
73 | |||
74 | /** |
||
75 | * @param $method |
||
76 | * @param $parameters |
||
77 | * @return Media |
||
78 | */ |
||
79 | public function __call($method, $parameters) |
||
83 | ); |
||
84 | } |
||
85 | |||
86 | /** |
||
87 | * @return string |
||
88 | */ |
||
89 | public function getPath(): string |
||
90 | { |
||
91 | return $this->path; |
||
92 | } |
||
93 | |||
94 | /** |
||
95 | * @return bool |
||
96 | */ |
||
97 | public function isTmp(): bool |
||
100 | } |
||
101 | } |
||
102 |