Lines
100.00%
1 / 1
Functions and Methods
100.00%
1 / 1
Classes and Traits
100.00%
1 / 1
| Name | Lines | Functions and Methods | CRAP | Classes and Traits | ||||||
|---|---|---|---|---|---|---|---|---|---|---|
| PlayerData | 100.00% | 1 / 1 | 100.00% | 1 / 1 | 1 | 100.00% | 1 / 1 | |||
| __construct | 100.00% | 1 / 1 | 100.00% | 1 / 1 | 1 | |||||
| 1 | <?php | |
| 2 | ||
| 3 | declare(strict_types=1); | |
| 4 | ||
| 5 | namespace Lorekeeper\Server\Event\Player; | |
| 6 | ||
| 7 | use Lorekeeper\Core\Player\PlayerLevelProgress; | |
| 8 | use Lorekeeper\Core\Player\PlayerName; | |
| 9 | use Lorekeeper\Core\Player\PlayerQuestMarks; | |
| 10 | use Lorekeeper\Core\Player\Wallet; | |
| 11 | use Lorekeeper\Core\Support\Quantity; | |
| 12 | use Lorekeeper\Server\SocketId; | |
| 13 | ||
| 14 | final readonly class PlayerData | |
| 15 | { | |
| 16 | /** @mago-expect lint:excessive-parameter-list */ | |
| 17 | public function __construct( | |
| 18 | public SocketId $socketId, | |
| 19 | public PlayerName $name, | |
| 20 | public PlayerLevelProgress $progress, | |
| 21 | public Wallet $wallet, | |
| 22 | public bool $member, | |
| 23 | public Quantity $bagSlots, | |
| 24 | public PlayerQuestMarks $marks, | |
| 25 | ) {} | |
| 26 | } |