Total Complexity | 4 |
Total Lines | 31 |
Duplicated Lines | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 1 |
1 | <?php |
||
16 | class Blackhole implements Transport |
||
17 | { |
||
18 | /** |
||
19 | * @param Address $endpoint |
||
20 | * @param string $identify |
||
21 | */ |
||
22 | public function connect(Address $endpoint, string $identify = null) : void |
||
23 | { |
||
24 | // do nothing |
||
25 | } |
||
26 | |||
27 | /** |
||
28 | * @return Promised |
||
29 | */ |
||
30 | public function disconnect() : Promised |
||
31 | { |
||
32 | return Promise::resolved(); |
||
33 | } |
||
34 | |||
35 | /** |
||
36 | * @param string $data |
||
37 | */ |
||
38 | public function loading(string $data) : void |
||
39 | { |
||
40 | // do nothing |
||
41 | } |
||
42 | |||
43 | /** |
||
44 | */ |
||
45 | public function flushing() : void |
||
47 | // do nothing |
||
48 | } |
||
49 | } |
||
50 |