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
HeroData 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\Hero;
6
7use Lorekeeper\Core\Game\Level\Experience;
8use Lorekeeper\Core\Player\Hero\Inventory\HeroWallet;
9use Lorekeeper\Core\Player\PlayerLevel;
10use Lorekeeper\Core\Player\PlayerName;
11use Lorekeeper\Core\Player\PlayerSpawnId;
12use Lorekeeper\Core\Support\Gauge;
13use Lorekeeper\Core\Support\Quantity;
14use Lorekeeper\Core\World\Quest\QuestGroupId;
15
16final readonly class HeroData
17{
18    /**
19     * @param Gauge<Experience> $experience
20     * @param list<QuestGroupId> $quests
21     *
22     * @mago-expect lint:excessive-parameter-list
23     */
24    public function __construct(
25        public PlayerSpawnId $spawnId,
26        public PlayerName $name,
27        public PlayerLevel $level,
28        public Gauge $experience,
29        public HeroWallet $wallet,
30        public bool $member,
31        public Quantity $bagSlots,
32        public Quantity $bankSlots,
33        public array $quests,
34    ) {}
35}