| Total Complexity | 2 |
| Total Lines | 17 |
| Duplicated Lines | 0 % |
| Coverage | 60% |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 20 | class FilesystemProvider |
||
| 21 | { |
||
| 22 | public const FILESYSTEM_ADAPTER_TAG = 'silverback.api_component.filesystem_adapter'; |
||
| 23 | |||
| 24 | private ServiceLocator $adapters; |
||
| 25 | |||
| 26 | 9 | public function __construct(ServiceLocator $adapters) |
|
| 27 | { |
||
| 28 | 9 | $this->adapters = $adapters; |
|
| 29 | 9 | } |
|
| 30 | |||
| 31 | /** |
||
| 32 | * @throws RuntimeException |
||
| 33 | */ |
||
| 34 | public function getAdapter(string $name): FilesystemAdapter |
||
| 37 | } |
||
| 38 | } |
||
| 39 |