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