for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
declare(strict_types=1);
namespace unreal4u\MQTT\Protocol;
use unreal4u\MQTT\Client;
use unreal4u\MQTT\Internals\ProtocolBase;
use unreal4u\MQTT\Internals\ReadableContent;
use unreal4u\MQTT\Internals\ReadableContentInterface;
use unreal4u\MQTT\Internals\WritableContentInterface;
final class PingResp extends ProtocolBase implements ReadableContentInterface
{
use ReadableContent;
const CONTROL_PACKET_VALUE = 13;
/**
* @inheritdoc
*/
public function performSpecialActions(Client $client, WritableContentInterface $originalRequest): bool
$this->logger->debug('Updating internal last communication', ['object' => \get_class($this)]);
$client->updateLastCommunication();
return true;
}