| Total Complexity | 2 |
| Total Lines | 23 |
| Duplicated Lines | 0 % |
| Coverage | 100% |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 18 | abstract class Compare implements IterableFilterHandlerInterface |
||
| 19 | { |
||
| 20 | /** |
||
| 21 | * Compare item's field value with a given value. |
||
| 22 | * |
||
| 23 | * @param mixed $itemValue Value of the item to compare. |
||
| 24 | * @param mixed $argumentValue Value to compare with. |
||
| 25 | * |
||
| 26 | * @return bool If the comparison is true. |
||
| 27 | */ |
||
| 28 | abstract protected function compare(mixed $itemValue, mixed $argumentValue): bool; |
||
| 29 | |||
| 30 | 165 | public function match(array|object $item, array $arguments, array $iterableFilterHandlers): bool |
|
| 43 |