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 Kunstmaan\AdminBundle\Helper\FormWidgets\Tabs\TabPane; |
||
6 | |||
7 | use Kunstmaan\NodeBundle\Entity\HasNodeInterface; |
||
8 | use Kunstmaan\NodeBundle\Entity\Node; |
||
9 | use Kunstmaan\NodeBundle\Entity\NodeTranslation; |
||
10 | use Kunstmaan\NodeBundle\Entity\NodeVersion; |
||
11 | use Symfony\Component\EventDispatcher\Event; |
||
12 | use Symfony\Component\HttpFoundation\Request; |
||
13 | |||
14 | /** |
||
15 | * The event to pass metadata if the adaptForm event is triggered |
||
16 | */ |
||
17 | class AdaptFormEvent extends Event |
||
18 | { |
||
19 | |||
20 | /** |
||
21 | * @var TabPane |
||
22 | */ |
||
23 | private $tabPane; |
||
24 | |||
25 | /** |
||
26 | * @var |
||
27 | */ |
||
28 | private $page; |
||
29 | |||
30 | /** |
||
31 | * @var Node |
||
32 | */ |
||
33 | private $node; |
||
34 | |||
35 | /** |
||
36 | * @var NodeTranslation |
||
37 | */ |
||
38 | private $nodeTranslation; |
||
39 | |||
40 | /** |
||
41 | * @var NodeVersion |
||
42 | */ |
||
43 | private $nodeVersion; |
||
44 | |||
45 | /** |
||
46 | * @var Request |
||
47 | */ |
||
48 | private $request; |
||
49 | |||
50 | /** |
||
51 | * @param Request $request |
||
52 | * @param TabPane $tabPane The tab pane |
||
53 | * @param HasNodeInterface $page The page |
||
54 | * @param Node $node The node |
||
55 | * @param NodeTranslation $nodeTranslation The node translation |
||
56 | * @param NodeVersion $nodeVersion The node version |
||
57 | */ |
||
58 | public function __construct(Request $request, TabPane $tabPane, $page = null, Node $node = null, NodeTranslation $nodeTranslation = null, NodeVersion $nodeVersion = null) |
||
0 ignored issues
–
show
Bug
introduced
by
Loading history...
|
|||
59 | { |
||
60 | $this->request = $request; |
||
61 | $this->tabPane = $tabPane; |
||
62 | $this->page = $page; |
||
63 | $this->node = $node; |
||
64 | $this->nodeTranslation = $nodeTranslation; |
||
65 | $this->nodeVersion = $nodeVersion; |
||
66 | } |
||
67 | |||
68 | /** |
||
69 | * @return Node |
||
70 | */ |
||
71 | public function getNode() |
||
72 | { |
||
73 | return $this->node; |
||
74 | } |
||
75 | |||
76 | /** |
||
77 | * @return NodeTranslation |
||
78 | */ |
||
79 | public function getNodeTranslation() |
||
80 | { |
||
81 | return $this->nodeTranslation; |
||
82 | } |
||
83 | |||
84 | /** |
||
85 | * @return NodeVersion |
||
86 | */ |
||
87 | public function getNodeVersion() |
||
88 | { |
||
89 | return $this->nodeVersion; |
||
90 | } |
||
91 | |||
92 | /** |
||
93 | * @return |
||
94 | */ |
||
95 | public function getPage() |
||
96 | { |
||
97 | return $this->page; |
||
98 | } |
||
99 | |||
100 | /** |
||
101 | * @return TabPane |
||
102 | */ |
||
103 | public function getTabPane() |
||
104 | { |
||
105 | return $this->tabPane; |
||
106 | } |
||
107 | |||
108 | public function getRequest() |
||
109 | { |
||
110 | return $this->request; |
||
111 | } |
||
112 | |||
113 | } |
||
114 |