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