Total Complexity | 4 |
Total Lines | 36 |
Duplicated Lines | 0 % |
Changes | 0 |
1 | <?php |
||
13 | abstract class NavigationContainer implements AdvancedNavigationInterface |
||
14 | { |
||
15 | /** @var \Everlution\Navigation\Nested\Container\NestableContainerInterface[] */ |
||
16 | private $containers = []; |
||
17 | |||
18 | public function add(NestableContainerInterface $container): void |
||
19 | { |
||
20 | $this->containers[get_class($container)] = $container; |
||
21 | } |
||
22 | |||
23 | /** |
||
24 | * @return \Everlution\Navigation\ContainerInterface[] |
||
25 | */ |
||
26 | public function getNavigationContainers(): array |
||
29 | } |
||
30 | |||
31 | /** |
||
32 | * @param string $name |
||
33 | * @return NestableContainerInterface |
||
34 | * @throws ContainerNotFoundException |
||
35 | */ |
||
36 | public function get(string $name): NestableContainerInterface |
||
43 | } |
||
44 | |||
45 | /** |
||
46 | * @return ContainerInterface |
||
47 | */ |
||
48 | abstract public function getRoot(): ContainerInterface; |
||
49 | } |
||
50 |