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
Player 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\Core\Player;
6
7use Lorekeeper\Core\Game\Attribute\Vitals;
8use Lorekeeper\Core\Game\Tag\Tags;
9use Lorekeeper\Core\Game\Tag\Traits\Taggable;
10
11class Player
12{
13    /** @use Taggable<PlayerTag> */
14    use Taggable;
15
16    public function __construct(
17        public readonly PlayerSpawnId $spawnId,
18        public readonly PlayerName $name,
19        public protected(set) PlayerLevel $level,
20        public readonly Vitals $vitals,
21    ) {
22        $this->tags = new Tags();
23    }
24}