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