FilterEvent   A
last analyzed

Complexity

Total Complexity 3

Size/Duplication

Total Lines 18
Duplicated Lines 0 %

Importance

Changes 2
Bugs 0 Features 2
Metric Value
eloc 5
c 2
b 0
f 2
dl 0
loc 18
rs 10
wmc 3

3 Methods

Rating   Name   Duplication   Size   Complexity  
A getFilter() 0 3 1
A __construct() 0 3 1
A setFilter() 0 3 1
1
<?php
2
3
declare(strict_types=1);
4
5
namespace LAG\AdminBundle\Event;
6
7
use LAG\AdminBundle\Metadata\Filter\FilterInterface;
8
9
class FilterEvent
10
{
11
    public const FILTER_CREATE = 'lag_admin.filter.create';
12
    public const FILTER_CREATED = 'lag_admin.filter.created';
13
14
    public function __construct(
15
        private FilterInterface $filter,
16
    ) {
17
    }
18
19
    public function getFilter(): FilterInterface
20
    {
21
        return $this->filter;
22
    }
23
24
    public function setFilter(FilterInterface $filter): void
25
    {
26
        $this->filter = $filter;
27
    }
28
}
29