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