| Total Complexity | 3 |
| Total Lines | 26 |
| Duplicated Lines | 0 % |
| Coverage | 100% |
| Changes | 0 | ||
| 1 | <?php |
||
| 18 | final class PingResp extends ProtocolBase implements ReadableContentInterface |
||
| 19 | { |
||
| 20 | use ReadableContent; |
||
| 21 | |||
| 22 | const CONTROL_PACKET_VALUE = 13; |
||
| 23 | |||
| 24 | /** |
||
| 25 | * @inheritdoc |
||
| 26 | */ |
||
| 27 | 1 | public function performSpecialActions(ClientInterface $client, WritableContentInterface $originalRequest): bool |
|
| 28 | { |
||
| 29 | 1 | $client->updateLastCommunication(); |
|
| 30 | 1 | return true; |
|
| 31 | } |
||
| 32 | |||
| 33 | /** |
||
| 34 | * @inheritdoc |
||
| 35 | */ |
||
| 36 | 1 | public function getOriginControlPacket(): int |
|
| 37 | { |
||
| 38 | 1 | return PingReq::getControlPacketValue(); |
|
| 39 | } |
||
| 40 | |||
| 41 | 1 | public function fillObject(string $rawMQTTHeaders, ClientInterface $client): ReadableContentInterface |
|
| 44 | } |
||
| 45 | } |
||
| 46 |