Completed
Push — master ( 948c30...08e849 )
by Piotr
13s
created

DisplayEvent   A

Complexity

Total Complexity 3

Size/Duplication

Total Lines 33
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Importance

Changes 1
Bugs 0 Features 0
Metric Value
wmc 3
c 1
b 0
f 0
lcom 0
cbo 1
dl 0
loc 33
rs 10

3 Methods

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 7 1
A getDisplay() 0 4 1
A getData() 0 4 1
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 FSi\Bundle\AdminBundle\Display\Display;
16
use Symfony\Component\HttpFoundation\Request;
17
18
class DisplayEvent extends AdminEvent
19
{
20
    /**
21
     * @var Display
22
     */
23
    private $display;
24
25
    /**
26
     * @var mixed
27
     */
28
    private $data;
29
30
    public function __construct(Element $element, Request $request, Display $display, $data)
31
    {
32
        parent::__construct($element, $request);
33
34
        $this->display = $display;
35
        $this->data = $data;
36
    }
37
38
    public function getDisplay(): Display
39
    {
40
        return $this->display;
41
    }
42
43
    /**
44
     * @return mixed
45
     */
46
    public function getData()
47
    {
48
        return $this->data;
49
    }
50
}
51