Total Complexity | 3 |
Total Lines | 23 |
Duplicated Lines | 0 % |
Coverage | 100% |
Changes | 0 |
1 | <?php |
||
8 | class LoaderRegistry |
||
9 | { |
||
10 | /** @var array[] */ |
||
11 | private $loaderTree = []; |
||
12 | |||
13 | 2 | public function addLoader(CanLoad $loader): void |
|
19 | 2 | } |
|
20 | |||
21 | 2 | public function getLoader(string $resourceClass, string $resourceProperty): ?CanLoad |
|
22 | { |
||
23 | 2 | return $this->loaderTree[$resourceClass][$resourceProperty] ?? null; |
|
24 | } |
||
25 | |||
26 | 2 | public function getLoadableProperties(string $resourceClass): array |
|
31 | } |
||
32 | } |
||
33 |