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