BatchEvent::getRequest()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
dl 0
loc 3
rs 10
c 1
b 0
f 0
cc 1
eloc 1
nc 1
nop 0
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
The class Symfony\Component\EventDispatcher\Event has been deprecated: since Symfony 4.3, use "Symfony\Contracts\EventDispatcher\Event" instead ( Ignorable by Annotation )

If this is a false-positive, you can also ignore this issue in your code via the ignore-deprecated  annotation

18
class BatchEvent extends /** @scrutinizer ignore-deprecated */ Event
Loading history...
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