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