Total Complexity | 4 |
Total Lines | 33 |
Duplicated Lines | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
10 | class MediaOpenerFactory |
||
11 | { |
||
12 | use ForwardsCalls; |
||
13 | |||
14 | private $defaultDisk; |
||
15 | private $driver; |
||
16 | |||
17 | public function __construct(string $defaultDisk, PHPFFMpeg $driver) |
||
18 | { |
||
19 | $this->defaultDisk = $defaultDisk; |
||
20 | $this->driver = $driver; |
||
21 | } |
||
22 | |||
23 | public function new(): MediaOpener |
||
24 | { |
||
25 | return new MediaOpener($this->defaultDisk, $this->driver); |
||
26 | } |
||
27 | |||
28 | public function dynamicHLSPlaylist(): DynamicHLSPlaylist |
||
31 | } |
||
32 | |||
33 | /** |
||
34 | * Handle dynamic method calls into the MediaOpener. |
||
35 | * |
||
36 | * @param string $method |
||
37 | * @param array $parameters |
||
38 | * @return mixed |
||
39 | */ |
||
40 | public function __call($method, $parameters) |
||
43 | } |
||
44 | } |
||
45 |