| Total Complexity | 6 |
| Total Lines | 37 |
| Duplicated Lines | 0 % |
| Coverage | 0% |
| Changes | 2 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 5 | class NavigationCollection implements NavigationElementInterface |
||
| 6 | { |
||
| 7 | protected $collection = []; |
||
| 8 | protected $name = null; |
||
| 9 | protected $icon = null; |
||
| 10 | |||
| 11 | public function __construct($name = null, $icon = null, array $collection = []) |
||
| 12 | { |
||
| 13 | $this->collection = $collection; |
||
| 14 | $this->name = $name; |
||
| 15 | $this->icon = $icon; |
||
| 16 | } |
||
| 17 | |||
| 18 | public function getName(): ?string |
||
| 21 | } |
||
| 22 | |||
| 23 | public function getIcon(): ?string |
||
| 26 | } |
||
| 27 | |||
| 28 | public function getCollection(): array |
||
| 29 | { |
||
| 30 | return $this->collection; |
||
| 31 | } |
||
| 32 | |||
| 33 | public function addToCollection(NavigationElementInterface $item): self |
||
| 37 | } |
||
| 38 | |||
| 39 | public function __toArray(): array |
||
| 44 |