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\AdminBundle\Event; |
||
4 | |||
5 | use Kunstmaan\AdminBundle\Helper\FormWidgets\Tabs\TabPane; |
||
6 | use Symfony\Component\EventDispatcher\Event; |
||
7 | use Symfony\Component\HttpFoundation\Request; |
||
8 | |||
9 | /** |
||
10 | * Class AdaptSimpleFormEvent |
||
11 | * @package Kunstmaan\AdminBundle\Event |
||
12 | */ |
||
13 | class AdaptSimpleFormEvent extends Event |
||
14 | { |
||
15 | |||
16 | /** |
||
17 | * @var Request |
||
18 | */ |
||
19 | protected $request; |
||
20 | |||
21 | /** |
||
22 | * @var string |
||
23 | */ |
||
24 | protected $formType; |
||
25 | |||
26 | /** |
||
27 | * @var TabPane |
||
28 | */ |
||
29 | protected $tabPane; |
||
30 | |||
31 | /** |
||
32 | * @var |
||
33 | */ |
||
34 | protected $data; |
||
35 | |||
36 | /** |
||
37 | * @var array |
||
38 | */ |
||
39 | protected $options = array(); |
||
40 | |||
41 | /** |
||
42 | * @param Request $request |
||
43 | * @param string $formType |
||
44 | * @param $data |
||
45 | */ |
||
46 | public function __construct(Request $request, $formType, $data, $options = array()) |
||
47 | { |
||
48 | $this->request = $request; |
||
49 | $this->formType = $formType; |
||
50 | $this->data = $data; |
||
51 | $this->options = $options; |
||
52 | } |
||
53 | |||
54 | /** |
||
55 | * @return TabPane |
||
56 | */ |
||
57 | public function getTabPane() |
||
58 | { |
||
59 | return $this->tabPane; |
||
60 | } |
||
61 | |||
62 | /** |
||
63 | * @param TabPane $tabPane |
||
64 | */ |
||
65 | public function setTabPane(TabPane $tabPane) |
||
66 | { |
||
67 | $this->tabPane = $tabPane; |
||
68 | } |
||
69 | |||
70 | /** |
||
71 | * @return Request |
||
72 | */ |
||
73 | public function getRequest() |
||
74 | { |
||
75 | return $this->request; |
||
76 | } |
||
77 | |||
78 | /** |
||
79 | * @param Request $request |
||
80 | */ |
||
81 | public function setRequest(Request $request) |
||
0 ignored issues
–
show
Bug
introduced
by
Loading history...
|
|||
82 | { |
||
83 | $this->request = $request; |
||
84 | } |
||
85 | |||
86 | /** |
||
87 | * @return string |
||
88 | */ |
||
89 | public function getFormType() |
||
90 | { |
||
91 | return $this->formType; |
||
92 | } |
||
93 | |||
94 | /** |
||
95 | * @param string $type |
||
96 | */ |
||
97 | public function setFormType($type) |
||
98 | { |
||
99 | $this->formType = $type; |
||
100 | } |
||
101 | |||
102 | /** |
||
103 | * @return mixed |
||
104 | */ |
||
105 | public function getData() |
||
106 | { |
||
107 | return $this->data; |
||
108 | } |
||
109 | |||
110 | /** |
||
111 | * @param $data |
||
112 | */ |
||
113 | public function setData($data) |
||
114 | { |
||
115 | $this->data = $data; |
||
116 | } |
||
117 | |||
118 | /** |
||
119 | * @return array |
||
120 | */ |
||
121 | public function getOptions() |
||
122 | { |
||
123 | return $this->options; |
||
124 | } |
||
125 | |||
126 | /** |
||
127 | * @param $options |
||
128 | */ |
||
129 | public function setOptions($options) |
||
130 | { |
||
131 | $this->options = $options; |
||
132 | } |
||
133 | } |
||
134 |