| Conditions | 4 |
| Paths | 3 |
| Total Lines | 10 |
| Code Lines | 5 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 6 |
| CRAP Score | 4 |
| Changes | 1 | ||
| Bugs | 0 | Features | 1 |
| 1 | <?php |
||
| 37 | 4 | protected function validateArguments(Node ...$arguments): void |
|
| 38 | { |
||
| 39 | 4 | $argumentCount = \count($arguments); |
|
| 40 | 4 | if ($argumentCount < 2 || $argumentCount > 4) { |
|
| 41 | 2 | throw InvalidArgumentForVariadicFunctionException::between('jsonb_path_query_array', 2, 4); |
|
| 42 | } |
||
| 43 | |||
| 44 | // Validate that the fourth parameter is a valid boolean if provided |
||
| 45 | 2 | if ($argumentCount === 4) { |
|
| 46 | 2 | $this->validateBoolean($arguments[3], 'JSONB_PATH_QUERY_ARRAY'); |
|
| 47 | } |
||
| 50 |