Total Complexity | 5 |
Total Lines | 58 |
Duplicated Lines | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 1 |
1 | <?php |
||
19 | class Endpoints extends Managed |
||
20 | { |
||
21 | /** |
||
22 | * @var bool |
||
23 | */ |
||
24 | protected $strict = false; |
||
25 | |||
26 | /** |
||
27 | * @var string |
||
28 | */ |
||
29 | protected $type = 'rpc'; |
||
30 | |||
31 | /** |
||
32 | * @var Options |
||
33 | */ |
||
34 | private $options = null; |
||
35 | |||
36 | /** |
||
37 | * Clustered constructor. |
||
38 | * @param string $server |
||
39 | * @param array $tags |
||
40 | * @param Options $options |
||
41 | */ |
||
42 | public function __construct(string $server, array $tags, Options $options) |
||
43 | { |
||
44 | $this->tags = $tags; |
||
45 | $this->server = $server; |
||
46 | $this->options = $options; |
||
47 | } |
||
48 | |||
49 | /** |
||
50 | * @param string ...$tags |
||
51 | * @return Client |
||
52 | */ |
||
53 | public function select(string ...$tags) |
||
56 | } |
||
57 | |||
58 | /** |
||
59 | * @param Endpoint $endpoint |
||
60 | * @return Client |
||
61 | */ |
||
62 | protected function connecting(Endpoint $endpoint) |
||
68 | } |
||
69 | |||
70 | /** |
||
71 | * @param Client $connected |
||
72 | * @return Promised |
||
73 | */ |
||
74 | protected function disconnecting($connected) : Promised |
||
77 | } |
||
78 | } |
||
79 |