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 | ||||||
|---|---|---|---|---|---|---|---|---|---|---|
| JoinHouseCommand | 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 | ||
| 3 | declare(strict_types=1); | |
| 4 | ||
| 5 | namespace Lorekeeper\Client\Command\Map; | |
| 6 | ||
| 7 | use Lorekeeper\Client\Command\Command; | |
| 8 | use Lorekeeper\Core\Player\PlayerName; | |
| 9 | use Override; | |
| 10 | ||
| 11 | final readonly class JoinHouseCommand implements Command | |
| 12 | { | |
| 13 | public function __construct( | |
| 14 | private PlayerName $owner, | |
| 15 | ) {} | |
| 16 | ||
| 17 | #[Override] | |
| 18 | public function toMessage(): string | |
| 19 | { | |
| 20 | return "%xt%zm%house%1%{$this->owner}%"; | |
| 21 | } | |
| 22 | } |