Passed
Pull Request — master (#166)
by Arnaud
04:00
created

EntityEvent::setEntities()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 2
CRAP Score 1

Importance

Changes 0
Metric Value
cc 1
eloc 1
nc 1
nop 1
dl 0
loc 3
ccs 2
cts 2
cp 1
crap 1
rs 10
c 0
b 0
f 0
1
<?php
2
3
namespace LAG\AdminBundle\Event\Events;
4
5
use LAG\AdminBundle\Event\AbstractEvent;
6
7
class EntityEvent extends AbstractEvent
8
{
9
    /**
10
     * @var mixed
11
     */
12
    private $entities;
13
14
    /**
15
     * @var array
16
     */
17
    private $filters = [];
18
19
    /**
20
     * @return mixed
21
     */
22 6
    public function getEntities()
23
    {
24 6
        return $this->entities;
25
    }
26
27
    /**
28
     * @param mixed $entities
29
     */
30 4
    public function setEntities($entities)
31
    {
32 4
        $this->entities = $entities;
33 4
    }
34
35 2
    public function getFilters(): array
36
    {
37 2
        return $this->filters;
38
    }
39
40
    public function setFilters(array $filters)
41
    {
42
        $this->filters = $filters;
43
    }
44
}
45