Total Complexity | 3 |
Total Lines | 21 |
Duplicated Lines | 0 % |
Changes | 0 |
1 | <?php |
||
11 | abstract class NavigationContainer implements AdvancedNavigationInterface |
||
12 | { |
||
13 | /** @var ContainerInterface[] */ |
||
14 | private $containers = []; |
||
15 | |||
16 | public function add(ContainerInterface $container): void |
||
17 | { |
||
18 | $this->containers[get_class($container)] = $container; |
||
19 | } |
||
20 | |||
21 | /** |
||
22 | * @return ContainerInterface[] |
||
23 | */ |
||
24 | public function getContainers(): array |
||
25 | { |
||
26 | return $this->containers; |
||
27 | } |
||
28 | |||
29 | public function get(string $name): ContainerInterface |
||
32 | } |
||
33 | } |
||
34 |