Completed
Pull Request — master (#162)
by Arnaud
29:43 queued 19:22
created

EntityEvent   A

Complexity

Total Complexity 4

Size/Duplication

Total Lines 36
Duplicated Lines 0 %

Test Coverage

Coverage 77.78%

Importance

Changes 0
Metric Value
eloc 7
c 0
b 0
f 0
dl 0
loc 36
ccs 7
cts 9
cp 0.7778
rs 10
wmc 4

4 Methods

Rating   Name   Duplication   Size   Complexity  
A getEntities() 0 3 1
A getFilters() 0 3 1
A setEntities() 0 3 1
A setFilters() 0 3 1
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