| Total Complexity | 2 |
| Total Lines | 17 |
| Duplicated Lines | 0 % |
| Coverage | 60% |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 19 | class FilesystemProvider |
||
| 20 | { |
||
| 21 | public const FILESYSTEM_ADAPTER_TAG = 'silverback.api_component.filesystem_adapter'; |
||
| 22 | |||
| 23 | /** |
||
| 24 | * @var array|AbstractAdapter[] |
||
| 25 | */ |
||
| 26 | private array $adapters = []; |
||
| 27 | |||
| 28 | 9 | public function addAdapter(string $name, FilesystemAdapter $adapter): void |
|
| 29 | { |
||
| 30 | 9 | $this->adapters[$name] = $adapter; |
|
| 31 | 9 | } |
|
| 32 | |||
| 33 | public function getAdapter(string $name): ?FilesystemAdapter |
||
| 36 | } |
||
| 37 | } |
||
| 38 |