Total Complexity | 4 |
Total Lines | 28 |
Duplicated Lines | 0 % |
Coverage | 100% |
Changes | 0 |
1 | <?php |
||
19 | final class Disconnect extends ProtocolBase implements WritableContentInterface |
||
20 | { |
||
21 | use WritableContent; |
||
22 | |||
23 | const CONTROL_PACKET_VALUE = 14; |
||
24 | |||
25 | 1 | public function createVariableHeader(): string |
|
26 | { |
||
27 | 1 | return ''; |
|
28 | } |
||
29 | |||
30 | 1 | public function createPayload(): string |
|
31 | { |
||
32 | 1 | return ''; |
|
33 | } |
||
34 | |||
35 | 1 | public function expectAnswer(string $data, ClientInterface $client): ReadableContentInterface |
|
36 | { |
||
37 | 1 | return new DisconnectCleanup($this->logger); |
|
38 | } |
||
39 | |||
40 | /** |
||
41 | * A disconnect should never expect an answer back |
||
42 | * @return bool |
||
43 | */ |
||
44 | 1 | public function shouldExpectAnswer(): bool |
|
47 | } |
||
48 | } |
||
49 |