Total Complexity | 4 |
Total Lines | 32 |
Duplicated Lines | 0 % |
Changes | 0 |
1 | <?php |
||
16 | abstract class NavigationContainer implements AdvancedNavigationInterface |
||
17 | { |
||
18 | /** @var NestableContainerInterface[] */ |
||
19 | private $containers = []; |
||
20 | |||
21 | public function add(NestableContainerInterface $container): void |
||
22 | { |
||
23 | $this->containers[get_class($container)] = $container; |
||
24 | } |
||
25 | |||
26 | /** |
||
27 | * @return ContainerInterface[] |
||
28 | */ |
||
29 | public function getNavigationContainers(): array |
||
32 | } |
||
33 | |||
34 | /** |
||
35 | * @param string $name |
||
36 | * |
||
37 | * @return NestableContainerInterface |
||
38 | * |
||
39 | * @throws ContainerNotFoundException |
||
40 | */ |
||
41 | public function get(string $name): NestableContainerInterface |
||
48 | } |
||
49 | } |
||
50 |