| Conditions | 2 |
| Paths | 2 |
| Total Lines | 7 |
| Code Lines | 4 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 4 |
| CRAP Score | 2 |
| Changes | 0 | ||
| 1 | <?php |
||
| 23 | 10 | public function match(array|object $item, FilterInterface $filter, array $iterableFilterHandlers): bool |
|
| 24 | { |
||
| 25 | 10 | if (!$filter instanceof EqualsNull) { |
|
| 26 | 1 | throw new InvalidArgumentException('Incorrect filter.'); |
|
| 27 | } |
||
| 28 | |||
| 29 | 9 | return ArrayHelper::getValue($item, $filter->field) === null; |
|
| 30 | } |
||
| 32 |