Lines
100.00%
1 / 1
Methods
100.00%
1 / 1
Classes
100.00%
1 / 1
| Name | Lines | Methods | CRAP | ||||
|---|---|---|---|---|---|---|---|
| __construct | 100.00% | 1 / 1 | 100.00% | 1 / 1 | 1 | ||
| 11 | class 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 | } |
From Lorekeeper\Core\Game\Tag\Traits\Taggable
| 13 | trait Taggable | |
| 14 | { | |
| 15 | /** @var Tags<T> */ | |
| 16 | public readonly Tags $tags; | |
| 17 | } |