| Total Complexity | 2 |
| Total Lines | 34 |
| Duplicated Lines | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 24 | class ConfigureEvent extends Event |
||
| 25 | { |
||
| 26 | /** |
||
| 27 | * Event name |
||
| 28 | * |
||
| 29 | * @const string |
||
| 30 | */ |
||
| 31 | public const NAME = 'veslo.app.event.menu.configure'; |
||
| 32 | |||
| 33 | /** |
||
| 34 | * Root item of application menu tree |
||
| 35 | * |
||
| 36 | * @var ItemInterface |
||
| 37 | */ |
||
| 38 | private $root; |
||
| 39 | |||
| 40 | /** |
||
| 41 | * ConfigureEvent constructor. |
||
| 42 | * |
||
| 43 | * @param ItemInterface $root Root item of application menu tree |
||
| 44 | */ |
||
| 45 | public function __construct(ItemInterface $root) |
||
| 48 | } |
||
| 49 | |||
| 50 | /** |
||
| 51 | * Returns a root item of application menu tree |
||
| 52 | * |
||
| 53 | * @return ItemInterface |
||
| 54 | */ |
||
| 55 | public function getRoot(): ItemInterface |
||
| 60 |