FilterEvent::__construct()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 0

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 1
Metric Value
cc 1
eloc 0
c 1
b 0
f 1
nc 1
nop 1
dl 0
loc 3
rs 10
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