| Conditions | 2 |
| Paths | 2 |
| Total Lines | 12 |
| Code Lines | 8 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 24 | public static function createCommandWithArguments(array $arguments) : CommandInterface |
||
| 25 | { |
||
| 26 | if (count($arguments) <2) { |
||
| 27 | throw new InvalidNumberOfArgumentsException( |
||
| 28 | sprintf('ReJSON::mget needs at least 2 arguments!, % given', count($arguments)) |
||
| 29 | ); |
||
| 30 | } |
||
| 31 | $path = array_pop($arguments); |
||
| 32 | $keys = $arguments; |
||
| 33 | return new self( |
||
| 34 | $keys, |
||
| 35 | new Path($path) |
||
| 36 | ); |
||
| 39 |