<?php

declare(strict_types=1);

namespace BinSoul\Net\Mqtt\Packet;

use BinSoul\Net\Mqtt\Packet;
use BinSoul\Net\Mqtt\PacketStream;

/**
 * Represents the PINGRESP packet.
 */
class PingResponsePacket extends BasePacket
{
    protected static $packetType = Packet::TYPE_PINGRESP;

    public function read(PacketStream $stream): void
    {
        parent::read($stream);

        $this->assertPacketFlags(0);
        $this->assertRemainingPacketLength(0);
    }
}
