| Total Complexity | 5 |
| Total Lines | 24 |
| Duplicated Lines | 0 % |
| Coverage | 88.89% |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 10 | class FilterAnd implements FilterInterface |
||
| 11 | { |
||
| 12 | private array $filters; |
||
| 13 | |||
| 14 | 1 | public function __construct(FilterInterface ...$filters) |
|
| 15 | { |
||
| 16 | 1 | if (count($filters) < 2) { |
|
| 17 | 1 | throw new \InvalidArgumentException('At least 2 filters should be provided.'); |
|
| 18 | } |
||
| 19 | $this->filters = $filters; |
||
| 20 | } |
||
| 21 | |||
| 22 | /** |
||
| 23 | * @inheritDoc |
||
| 24 | */ |
||
| 25 | 2 | public function match(ReflectionClass $reflectionClass): bool |
|
| 34 | } |
||
| 35 | } |
||
| 36 |