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
3declare(strict_types=1);
4
5namespace Lorekeeper\Server\Event\Player;
6
7use Lorekeeper\Core\Player\PlayerLevelProgress;
8use Lorekeeper\Core\Player\PlayerName;
9use Lorekeeper\Core\Player\PlayerQuestMarks;
10use Lorekeeper\Core\Player\Wallet;
11use Lorekeeper\Core\Support\Quantity;
12use Lorekeeper\Server\SocketId;
13
14final 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}