| Total Complexity | 3 |
| Total Lines | 25 |
| Duplicated Lines | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 11 | final class MultipleGet extends CommandAbstract implements CommandInterface |
||
| 12 | { |
||
| 13 | protected static $command = 'JSON.MGET'; |
||
| 14 | |||
| 15 | private function __construct(array $keys, Path $path) |
||
| 16 | { |
||
| 17 | $this->arguments = $keys; |
||
| 18 | $this->arguments[] = $path->getPath(); |
||
| 19 | $this->responseCallback = function ($result) { |
||
| 20 | return array_map('json_decode', $result); |
||
| 21 | }; |
||
| 22 | } |
||
| 23 | |||
| 24 | public static function createCommandWithArguments(array $arguments) : CommandInterface |
||
| 36 | ); |
||
| 37 | } |
||
| 39 |