| Total Complexity | 3 |
| Total Lines | 17 |
| Duplicated Lines | 0 % |
| Coverage | 100% |
| Changes | 0 | ||
| 1 | <?php |
||
| 11 | abstract class CompareHandler implements QueryBuilderFilterHandler, FilterHandlerInterface |
||
| 12 | { |
||
| 13 | abstract protected function getSymbol(): string; |
||
| 14 | |||
| 15 | 8 | protected function validateArguments(array $arguments): void |
|
| 16 | { |
||
| 17 | 8 | if (count($arguments) !== 2) { |
|
| 18 | 1 | throw new InvalidArgumentException('$arguments should contain exactly two elements.'); |
|
| 19 | } |
||
| 20 | } |
||
| 21 | |||
| 22 | 8 | public function getAsWhereArguments(array $arguments, array $handlers): array |
|
| 28 | } |
||
| 29 | } |
||
| 30 |