| Total Complexity | 3 |
| Total Lines | 26 |
| Duplicated Lines | 0 % |
| Coverage | 100% |
| Changes | 0 | ||
| 1 | <?php |
||
| 10 | final class DisconnectCleanup extends ProtocolBase implements ReadableContentInterface |
||
| 11 | { |
||
| 12 | use ReadableContent; |
||
| 13 | |||
| 14 | /** |
||
| 15 | * @inheritdoc |
||
| 16 | */ |
||
| 17 | 1 | public function performSpecialActions(ClientInterface $client, WritableContentInterface $originalRequest): bool |
|
| 18 | { |
||
| 19 | 1 | $successFullyClosed = $client->shutdownConnection(); |
|
| 20 | 1 | $this->logger->info('Sent shutdown signal to socket', ['successFullyClosed' => $successFullyClosed]); |
|
| 21 | 1 | $client->setConnected(false); |
|
| 22 | 1 | return true; |
|
| 23 | } |
||
| 24 | |||
| 25 | /** |
||
| 26 | * @inheritdoc |
||
| 27 | */ |
||
| 28 | 1 | public function getOriginControlPacket(): int |
|
| 31 | } |
||
| 32 | |||
| 33 | 1 | public function fillObject(string $rawMQTTHeaders, ClientInterface $client): ReadableContentInterface |
|
| 36 | } |
||
| 37 | } |
||
| 38 |