Total Complexity | 4 |
Total Lines | 26 |
Duplicated Lines | 0 % |
Changes | 0 |
1 | <?php |
||
14 | abstract class MutableContainer implements MutableContainerInterface |
||
15 | { |
||
16 | /** @var ItemInterface[] */ |
||
17 | private $items = []; |
||
18 | |||
19 | public function add(ItemInterface $item): void |
||
22 | } |
||
23 | |||
24 | /** |
||
25 | * @return \Everlution\Navigation\Item\ItemInterface[] |
||
26 | */ |
||
27 | public function getItems(): array |
||
28 | { |
||
29 | return $this->items; |
||
30 | } |
||
31 | |||
32 | public function get(string $name): ItemInterface |
||
33 | { |
||
34 | return $this->items[$name]; |
||
35 | } |
||
36 | |||
37 | public function reset(): void |
||
40 | } |
||
41 | } |
||
42 |