Total Complexity | 6 |
Total Lines | 62 |
Duplicated Lines | 0 % |
Coverage | 0% |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
11 | class TcpServer implements ServerInterface |
||
12 | { |
||
13 | |||
14 | private array $config; |
||
15 | |||
16 | /** |
||
17 | * @var \React\Socket\ServerInterface |
||
18 | */ |
||
19 | private $tcpServer = null; |
||
20 | |||
21 | |||
22 | /** |
||
23 | * @var ListenerInterface[] |
||
24 | */ |
||
25 | private array $listeners; |
||
26 | |||
27 | /** |
||
28 | * @param array $config |
||
29 | * @return void |
||
30 | */ |
||
31 | public function setConfig(array $config): void { |
||
32 | $this->config = $config; |
||
33 | } |
||
34 | |||
35 | /** |
||
36 | * @return void |
||
37 | */ |
||
38 | public function start(): void { |
||
55 | } |
||
56 | }); |
||
57 | }); |
||
58 | } |
||
59 | |||
60 | /** |
||
61 | * @return void |
||
62 | */ |
||
63 | public function down(): void { |
||
64 | $this->tcpServer->close(); |
||
65 | } |
||
66 | |||
67 | /** |
||
68 | * @param array $listeners |
||
69 | * @return void |
||
70 | */ |
||
71 | public function setListeners(array $listeners): void { |
||
73 | } |
||
74 | } |