@@ 12-49 (lines=38) @@ | ||
9 | /** |
|
10 | * @author Michał Sikora |
|
11 | */ |
|
12 | class FormViewEvent extends Event |
|
13 | { |
|
14 | /** |
|
15 | * @var FormInterface |
|
16 | */ |
|
17 | private $form; |
|
18 | ||
19 | /** |
|
20 | * @var Request |
|
21 | */ |
|
22 | private $request; |
|
23 | ||
24 | /** |
|
25 | * @param FormInterface $form |
|
26 | * @param Request $request |
|
27 | */ |
|
28 | public function __construct(FormInterface $form, Request $request) |
|
29 | { |
|
30 | $this->form = $form; |
|
31 | $this->request = $request; |
|
32 | } |
|
33 | ||
34 | /** |
|
35 | * @return FormInterface |
|
36 | */ |
|
37 | public function getForm() |
|
38 | { |
|
39 | return $this->form; |
|
40 | } |
|
41 | ||
42 | /** |
|
43 | * @return Request |
|
44 | */ |
|
45 | public function getRequest() |
|
46 | { |
|
47 | return $this->request; |
|
48 | } |
|
49 | } |
|
50 |
@@ 12-49 (lines=38) @@ | ||
9 | /** |
|
10 | * @author Michał Sikora |
|
11 | */ |
|
12 | class PostFormEvent extends Event |
|
13 | { |
|
14 | /** |
|
15 | * @var FormInterface |
|
16 | */ |
|
17 | private $form; |
|
18 | ||
19 | /** |
|
20 | * @var Request |
|
21 | */ |
|
22 | private $request; |
|
23 | ||
24 | /** |
|
25 | * @param FormInterface $form |
|
26 | * @param Request $request |
|
27 | */ |
|
28 | public function __construct(FormInterface $form, Request $request) |
|
29 | { |
|
30 | $this->form = $form; |
|
31 | $this->request = $request; |
|
32 | } |
|
33 | ||
34 | /** |
|
35 | * @return FormInterface |
|
36 | */ |
|
37 | public function getForm() |
|
38 | { |
|
39 | return $this->form; |
|
40 | } |
|
41 | ||
42 | /** |
|
43 | * @return Request |
|
44 | */ |
|
45 | public function getRequest() |
|
46 | { |
|
47 | return $this->request; |
|
48 | } |
|
49 | } |
|
50 |
@@ 12-49 (lines=38) @@ | ||
9 | /** |
|
10 | * @author Michał Sikora |
|
11 | */ |
|
12 | class PutFormEvent extends Event |
|
13 | { |
|
14 | /** |
|
15 | * @var FormInterface |
|
16 | */ |
|
17 | private $form; |
|
18 | ||
19 | /** |
|
20 | * @var Request |
|
21 | */ |
|
22 | private $request; |
|
23 | ||
24 | /** |
|
25 | * @param FormInterface $form |
|
26 | * @param Request $request |
|
27 | */ |
|
28 | public function __construct(FormInterface $form, Request $request) |
|
29 | { |
|
30 | $this->form = $form; |
|
31 | $this->request = $request; |
|
32 | } |
|
33 | ||
34 | /** |
|
35 | * @return FormInterface |
|
36 | */ |
|
37 | public function getForm() |
|
38 | { |
|
39 | return $this->form; |
|
40 | } |
|
41 | ||
42 | /** |
|
43 | * @return Request |
|
44 | */ |
|
45 | public function getRequest() |
|
46 | { |
|
47 | return $this->request; |
|
48 | } |
|
49 | } |
|
50 |