| Total Complexity | 3 |
| Total Lines | 24 |
| Duplicated Lines | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 20 | class Storage |
||
| 21 | { |
||
| 22 | private ?StorageEngine $engine = null; |
||
| 23 | |||
| 24 | public const PUBLIC = 'public'; |
||
| 25 | public const PRIVATE = 'private'; |
||
| 26 | |||
| 27 | public function setAdapter(FilesystemAdapter $adapter): void |
||
| 28 | { |
||
| 29 | $this->engine = new StorageEngine($adapter); |
||
| 30 | } |
||
| 31 | |||
| 32 | /** |
||
| 33 | * @param array<mixed> $args |
||
| 34 | * |
||
| 35 | * @throws \Exception |
||
| 36 | */ |
||
| 37 | public function __call(string $method, array $args): mixed |
||
| 44 | } |
||
| 45 | } |
||
| 46 |