Lines 100.00% 2 / 2
Methods 100.00% 2 / 2
Classes 100.00% 1 / 1
Name Lines Methods CRAP
 __construct 100.00% 1 / 1 100.00% 1 / 1 1
 toMessage 100.00% 1 / 1 100.00% 1 / 1 1
12final readonly class PickUpDropCommand implements Command
13{
14    public function __construct(
15        private PlayerSpawnId $player,
16        private ItemId $item,
17    ) {}
18
19    #[Override]
20    public function toMessage(): string
21    {
22        return "%xt%zm%getDrop%{$this->player}%{$this->item->value}%";
23    }
24}