These results are based on our legacy PHP analysis, consider migrating to our new PHP analysis engine instead. Learn more
1 | <?php |
||
2 | |||
3 | namespace Kunstmaan\NodeBundle\Event; |
||
4 | |||
5 | use Knp\Menu\FactoryInterface; |
||
6 | use Knp\Menu\ItemInterface; |
||
7 | use Kunstmaan\NodeBundle\Entity\NodeVersion; |
||
8 | use Symfony\Component\EventDispatcher\Event; |
||
9 | |||
10 | /** |
||
11 | * ConfigureActionMenuEvent |
||
12 | */ |
||
13 | class ConfigureActionMenuEvent extends Event |
||
0 ignored issues
–
show
|
|||
14 | { |
||
15 | /** |
||
16 | * @var FactoryInterface |
||
17 | */ |
||
18 | private $factory; |
||
19 | |||
20 | /** |
||
21 | * @var ItemInterface |
||
22 | */ |
||
23 | private $menu; |
||
24 | |||
25 | /** |
||
26 | * @var NodeVersion |
||
27 | */ |
||
28 | private $activeNodeVersion; |
||
29 | |||
30 | /** |
||
31 | * @param FactoryInterface $factory The factory |
||
32 | * @param ItemInterface $menu The menu |
||
33 | * @param NodeVersion $activeNodeVersion The nodeversion |
||
34 | */ |
||
35 | 8 | public function __construct(FactoryInterface $factory, ItemInterface $menu, NodeVersion $activeNodeVersion) |
|
36 | { |
||
37 | 8 | $this->factory = $factory; |
|
38 | 8 | $this->menu = $menu; |
|
39 | 8 | $this->activeNodeVersion = $activeNodeVersion; |
|
40 | 8 | } |
|
41 | |||
42 | /** |
||
43 | * @return FactoryInterface |
||
44 | */ |
||
45 | 1 | public function getFactory() |
|
46 | { |
||
47 | 1 | return $this->factory; |
|
48 | } |
||
49 | |||
50 | /** |
||
51 | * @return ItemInterface |
||
52 | */ |
||
53 | 1 | public function getMenu() |
|
54 | { |
||
55 | 1 | return $this->menu; |
|
56 | } |
||
57 | |||
58 | /** |
||
59 | * Get activeNodeVersion |
||
60 | * |
||
61 | * @return NodeVersion |
||
62 | */ |
||
63 | 1 | public function getActiveNodeVersion() |
|
64 | { |
||
65 | 1 | return $this->activeNodeVersion; |
|
66 | } |
||
67 | } |
||
68 |
This class, trait or interface has been deprecated. The supplier of the file has supplied an explanatory message.
The explanatory message should give you some clue as to whether and when the type will be removed from the class and what other constant to use instead.