Total Complexity | 4 |
Total Lines | 31 |
Duplicated Lines | 0 % |
Coverage | 100% |
Changes | 2 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
11 | class ViolationFilterChain implements ViolationFilterInterface |
||
12 | { |
||
13 | /** @var ViolationFilterInterface[] */ |
||
14 | private $filters; |
||
15 | |||
16 | /** |
||
17 | * Constructor. |
||
18 | * |
||
19 | * @param ViolationFilterInterface ...$filters |
||
20 | */ |
||
21 | 9 | public function __construct(ViolationFilterInterface ...$filters) |
|
24 | 9 | } |
|
25 | |||
26 | /** |
||
27 | * Filter violations. |
||
28 | * |
||
29 | * @param ViolationInterface $violation |
||
30 | * |
||
31 | * @return bool |
||
32 | */ |
||
33 | 9 | public function __invoke(ViolationInterface $violation): bool |
|
44 |