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