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