Total Complexity | 5 |
Total Lines | 42 |
Duplicated Lines | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
7 | trait RedisClient |
||
8 | { |
||
9 | |||
10 | /** |
||
11 | * @var \Redis |
||
12 | */ |
||
13 | protected static $redis; |
||
14 | |||
15 | /** |
||
16 | * @param string $queue |
||
17 | * @param \Redis $redis |
||
18 | */ |
||
19 | public static function setQueueClient(string $queue, \Redis $redis) |
||
22 | } |
||
23 | |||
24 | /** |
||
25 | * @param \Redis $redis |
||
26 | */ |
||
27 | public static function setDefaultQueueClient(\Redis $redis) |
||
30 | } |
||
31 | |||
32 | /** |
||
33 | * @param string $queue |
||
34 | * @return \Redis |
||
35 | * |
||
36 | * @throws QueueWithoutConnectionException |
||
37 | */ |
||
38 | protected static function client(string $queue) |
||
51 |