1 | <?php |
||
10 | class MenuEvent extends Event |
||
11 | { |
||
12 | /** |
||
13 | * @var FactoryInterface |
||
14 | */ |
||
15 | private $factory; |
||
16 | |||
17 | /** |
||
18 | * @var ItemInterface |
||
19 | */ |
||
20 | private $menu; |
||
21 | |||
22 | /** |
||
23 | * @var ItemInterface |
||
24 | */ |
||
25 | private $currentItem; |
||
26 | /** |
||
27 | * @var EventDispatcherInterface |
||
28 | */ |
||
29 | private $eventDispatcher; |
||
30 | |||
31 | /** |
||
32 | * ConfigureMenuEvent constructor. |
||
33 | * |
||
34 | * @param EventDispatcherInterface $eventDispatcher |
||
35 | * @param FactoryInterface $factory |
||
36 | * @param ItemInterface $menu |
||
37 | * @param ItemInterface $currentItem |
||
38 | */ |
||
39 | public function __construct( |
||
50 | |||
51 | /** |
||
52 | * @return EventDispatcherInterface |
||
53 | */ |
||
54 | public function getEventDispatcher() |
||
58 | |||
59 | /** |
||
60 | * @return FactoryInterface |
||
61 | */ |
||
62 | public function getFactory() |
||
66 | |||
67 | /** |
||
68 | * @return ItemInterface |
||
69 | */ |
||
70 | public function getMenu() |
||
74 | |||
75 | /** |
||
76 | * @return ItemInterface |
||
77 | */ |
||
78 | public function getCurrentItem() |
||
82 | |||
83 | /** |
||
84 | * Creates an event object of it self but with given currentItem. |
||
85 | * |
||
86 | * @param ItemInterface $currentItem |
||
87 | * |
||
88 | * @return self |
||
89 | */ |
||
90 | public function createSubEvent(ItemInterface $currentItem) |
||
99 | } |
||
100 |