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