Total Complexity | 3 |
Total Lines | 42 |
Duplicated Lines | 0 % |
Coverage | 0% |
Changes | 2 | ||
Bugs | 0 | Features | 1 |
1 | <?php |
||
13 | final class Client |
||
14 | { |
||
15 | |||
16 | /** |
||
17 | * Client Redis Interface. |
||
18 | * |
||
19 | * @var ClientRedisStreamPhpInterface |
||
20 | */ |
||
21 | private $_client; |
||
22 | |||
23 | /** |
||
24 | * Client constructor. |
||
25 | * |
||
26 | * @param ClientRedisStreamPhpInterface $redisClient Client redis interface |
||
27 | */ |
||
28 | public function __construct(ClientRedisStreamPhpInterface $redisClient) |
||
29 | { |
||
30 | $this->_client = $redisClient; |
||
31 | } |
||
32 | |||
33 | /** |
||
34 | * Work with stream |
||
35 | * |
||
36 | * @param string $streamName Name stream |
||
37 | * |
||
38 | * @return Stream |
||
39 | */ |
||
40 | public function stream(string $streamName) : Stream |
||
43 | } |
||
44 | |||
45 | /** |
||
46 | * Work with stream group |
||
47 | * |
||
48 | * @param string $streamName Name stream |
||
49 | * |
||
50 | * @return StreamGroupConsumer |
||
51 | */ |
||
52 | public function streamGroupConsumer(string $streamName) : StreamGroupConsumer |
||
55 | } |
||
56 | } |