1 | <?php |
||
21 | class Client extends BaseClient |
||
22 | { |
||
23 | /** |
||
24 | * @var bool |
||
25 | */ |
||
26 | protected $fallbackMode = false; |
||
27 | |||
28 | /** |
||
29 | * @var array |
||
30 | */ |
||
31 | protected $fallbackSubscribers = []; |
||
32 | |||
33 | /** |
||
34 | * Client constructor. |
||
35 | * @param LoopInterface $loop |
||
36 | * @param string $token |
||
37 | */ |
||
38 | public function __construct(LoopInterface $loop, $token) |
||
43 | |||
44 | /** |
||
45 | * @param bool $value |
||
46 | * @return $this |
||
47 | */ |
||
48 | public function setFallbackMode(bool $value = true) |
||
58 | |||
59 | /** |
||
60 | * @return bool |
||
61 | */ |
||
62 | public function isFallbackMode() |
||
66 | |||
67 | /** |
||
68 | * @param \Closure $callback |
||
69 | * @return $this |
||
70 | */ |
||
71 | public function onChangeFallbackMode(\Closure $callback) |
||
76 | } |
||
77 |