| Conditions | 2 |
| Paths | 2 |
| Total Lines | 9 |
| Code Lines | 4 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 0 |
| CRAP Score | 6 |
| Changes | 0 | ||
| 1 | <?php |
||
| 18 | public function getAsWhereArguments(array $arguments, array $handlers): array |
||
| 19 | { |
||
| 20 | if (count($arguments) !== 2) { |
||
| 21 | throw new InvalidArgumentException('$arguments should contain exactly two elements.'); |
||
| 22 | } |
||
| 23 | |||
| 24 | [$field, $value] = $arguments; |
||
| 25 | |||
| 26 | return [$field, $this->getOperator(), new Parameter($value)]; |
||
| 27 | } |
||
| 29 |