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