| 1 | <?php |
||
| 11 | class RootNavigationItem implements Item |
||
| 12 | { |
||
| 13 | /** |
||
| 14 | * @return string |
||
| 15 | */ |
||
| 16 | public function getLabel(): string |
||
| 20 | |||
| 21 | /** @var Item[] */ |
||
| 22 | private $children; |
||
| 23 | /** @var array */ |
||
| 24 | private $attributes; |
||
| 25 | /** @var array */ |
||
| 26 | private $roles; |
||
| 27 | |||
| 28 | /** |
||
| 29 | * @return array |
||
| 30 | */ |
||
| 31 | public function getChildren(): array |
||
| 35 | |||
| 36 | /** |
||
| 37 | * @return array |
||
| 38 | */ |
||
| 39 | public function getAttributes(): array |
||
| 43 | |||
| 44 | /** |
||
| 45 | * @return array |
||
| 46 | */ |
||
| 47 | public function getRoles(): array |
||
| 51 | |||
| 52 | /** |
||
| 53 | * @param Item $item |
||
| 54 | * @return Item |
||
| 55 | */ |
||
| 56 | public function addChild(Item $item) |
||
| 62 | |||
| 63 | /** |
||
| 64 | * @param Item $parent |
||
| 65 | * @return Item |
||
| 66 | * @throws \Exception |
||
| 67 | */ |
||
| 68 | public function setParent(Item $parent) |
||
| 72 | |||
| 73 | /** |
||
| 74 | * @return Item|null |
||
| 75 | */ |
||
| 76 | public function getParent() |
||
| 80 | } |
||
| 81 |