init
This commit is contained in:
22
vendor/binsoul/net-mqtt/src/Packet/PingRequestPacket.php
vendored
Executable file
22
vendor/binsoul/net-mqtt/src/Packet/PingRequestPacket.php
vendored
Executable file
@@ -0,0 +1,22 @@
|
||||
<?php
|
||||
|
||||
namespace BinSoul\Net\Mqtt\Packet;
|
||||
|
||||
use BinSoul\Net\Mqtt\PacketStream;
|
||||
use BinSoul\Net\Mqtt\Packet;
|
||||
|
||||
/**
|
||||
* Represents the PINGREQ packet.
|
||||
*/
|
||||
class PingRequestPacket extends BasePacket
|
||||
{
|
||||
protected static $packetType = Packet::TYPE_PINGREQ;
|
||||
|
||||
public function read(PacketStream $stream)
|
||||
{
|
||||
parent::read($stream);
|
||||
|
||||
$this->assertPacketFlags(0);
|
||||
$this->assertRemainingPacketLength(0);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user