Lines 0.00% 0 / 2
Functions and Methods 0.00% 0 / 2
Classes and Traits 0.00% 0 / 1
Name Lines Functions and Methods CRAP Classes and Traits
UnsubAckPacket 0.00% 0 / 2 0.00% 0 / 2 6 0.00% 0 / 1
 __construct 0.00% 0 / 1 0.00% 0 / 1 2
 getPacketType 0.00% 0 / 1 0.00% 0 / 1 2
1<?php
2
3declare(strict_types=1);
4
5namespace Stewart\Mqtt\Packet;
6
7final readonly class UnsubAckPacket implements InboundPacket
8{
9    public function __construct(public int $packetId) {}
10
11    public function getPacketType(): PacketType
12    {
13        return PacketType::UnsubAck;
14    }
15}