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