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 | ||
| 3 | declare(strict_types=1); | |
| 4 | ||
| 5 | namespace Lorekeeper\Server\Event\Player\Hero; | |
| 6 | ||
| 7 | use Lorekeeper\Core\Game\Level\Experience; | |
| 8 | use Lorekeeper\Core\Player\Hero\Inventory\HeroWallet; | |
| 9 | use Lorekeeper\Core\Player\PlayerLevel; | |
| 10 | use Lorekeeper\Core\Player\PlayerName; | |
| 11 | use Lorekeeper\Core\Player\PlayerSpawnId; | |
| 12 | use Lorekeeper\Core\Support\Gauge; | |
| 13 | use Lorekeeper\Core\Support\Quantity; | |
| 14 | use Lorekeeper\Core\World\Quest\QuestGroupId; | |
| 15 | ||
| 16 | final 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 | } |