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
EnhanceItemCommand 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\Core\Item\ItemId;
9use Lorekeeper\Core\World\Shop\ShopId;
10use Lorekeeper\Server\AreaId;
11use Override;
12
13final readonly class EnhanceItemCommand implements Command
14{
15    public function __construct(
16        private AreaId $area,
17        private ItemId $item,
18        private ItemId $enhancement,
19        private ShopId $shop,
20    ) {}
21
22    #[Override]
23    public function toMessage(): string
24    {
25        return "%xt%zm%enhanceItemShop%{$this->area}%{$this->item}%{$this->enhancement}%{$this->shop}%";
26    }
27}