1 | <?php |
||
2 | |||
3 | /** |
||
4 | * (c) FSi sp. z o.o. <[email protected]> |
||
5 | * |
||
6 | * For the full copyright and license information, please view the LICENSE |
||
7 | * file that was distributed with this source code. |
||
8 | */ |
||
9 | |||
10 | declare(strict_types=1); |
||
11 | |||
12 | namespace FSi\Bundle\AdminBundle\Event; |
||
13 | |||
14 | use FSi\Bundle\AdminBundle\Admin\Element; |
||
15 | use Symfony\Component\EventDispatcher\Event; |
||
16 | use Symfony\Component\HttpFoundation\Request; |
||
17 | |||
18 | class BatchEvent extends Event |
||
0 ignored issues
–
show
Deprecated Code
introduced
by
![]() |
|||
19 | { |
||
20 | /** |
||
21 | * @var Element |
||
22 | */ |
||
23 | private $element; |
||
24 | |||
25 | /** |
||
26 | * @var Request |
||
27 | */ |
||
28 | private $request; |
||
29 | |||
30 | /** |
||
31 | * @var object |
||
32 | */ |
||
33 | private $object; |
||
34 | |||
35 | /** |
||
36 | * @param Element $element |
||
37 | * @param Request $request |
||
38 | * @param object $object |
||
39 | */ |
||
40 | public function __construct(Element $element, Request $request, $object) |
||
41 | { |
||
42 | $this->element = $element; |
||
43 | $this->request = $request; |
||
44 | $this->object = $object; |
||
45 | } |
||
46 | |||
47 | public function getElement(): Element |
||
48 | { |
||
49 | return $this->element; |
||
50 | } |
||
51 | |||
52 | /** |
||
53 | * @return Request |
||
54 | */ |
||
55 | public function getRequest(): Request |
||
56 | { |
||
57 | return $this->request; |
||
58 | } |
||
59 | |||
60 | /** |
||
61 | * @return object |
||
62 | */ |
||
63 | public function getObject() |
||
64 | { |
||
65 | return $this->object; |
||
66 | } |
||
67 | } |
||
68 |