| Total Complexity | 3 |
| Total Lines | 33 |
| Duplicated Lines | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php declare(strict_types=1); |
||
| 5 | class RedisMultiWrapper extends \Redis |
||
| 6 | { |
||
| 7 | use RedisMultiCompatibility; |
||
| 8 | |||
| 9 | /** |
||
| 10 | * @param array<mixed> $results |
||
| 11 | */ |
||
| 12 | public function __construct(private readonly \Redis $redis, private array $results = []) |
||
| 14 | } |
||
| 15 | |||
| 16 | /** |
||
| 17 | * @return mixed[] |
||
| 18 | */ |
||
| 19 | public function exec(): array |
||
| 20 | { |
||
| 21 | $ret = $this->results; |
||
| 22 | $this->results = []; |
||
| 23 | |||
| 24 | return $ret; |
||
| 25 | } |
||
| 26 | |||
| 27 | /** |
||
| 28 | * @param array<mixed> $arguments |
||
| 29 | * |
||
| 30 | * @return RedisMultiWrapper |
||
| 31 | */ |
||
| 32 | private function doCall(string $name, array $arguments) |
||
| 38 | } |
||
| 39 | } |
||
| 40 |