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