| Conditions | 2 |
| Paths | 2 |
| Total Lines | 11 |
| Code Lines | 6 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 6 |
| CRAP Score | 2 |
| Changes | 0 | ||
| 1 | <?php |
||
| 24 | 20 | public function match(array|object $item, array $arguments, array $iterableFilterHandlers): bool |
|
| 25 | { |
||
| 26 | 20 | if (count($arguments) !== 1) { |
|
| 27 | 4 | throw new InvalidArgumentException('$arguments should contain exactly one element.'); |
|
| 28 | } |
||
| 29 | |||
| 30 | 16 | [$field] = $arguments; |
|
| 31 | 16 | FilterAssert::fieldIsString($field); |
|
| 32 | |||
| 33 | /** @var string $field */ |
||
| 34 | 8 | return ArrayHelper::getValue($item, $field) === null; |
|
| 35 | } |
||
| 37 |