Lines 100.00% 2 / 2
Functions and Methods 100.00% 2 / 2
Classes and Traits 100.00% 1 / 1
Name Lines Functions and Methods CRAP Classes and Traits
LoadPlayerInventoryCommand 100.00% 2 / 2 100.00% 2 / 2 2 100.00% 1 / 1
 __construct 100.00% 1 / 1 100.00% 1 / 1 1
 toMessage 100.00% 1 / 1 100.00% 1 / 1 1
1<?php
2
3declare(strict_types=1);
4
5namespace Lorekeeper\Client\Command\Inventory;
6
7use Lorekeeper\Client\Command\Command;
8use Lorekeeper\Server\AreaId;
9use Lorekeeper\Server\SocketId;
10use Override;
11
12final readonly class LoadPlayerInventoryCommand implements Command
13{
14    public function __construct(
15        private AreaId $areaId,
16        private SocketId $socketId,
17    ) {}
18
19    #[Override]
20    public function toMessage(): string
21    {
22        return "%xt%zm%retrieveInventory%{$this->areaId}%{$this->socketId}%";
23    }
24}