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 | ||
| 3 | declare(strict_types=1); | |
| 4 | ||
| 5 | namespace Lorekeeper\Core\Player; | |
| 6 | ||
| 7 | use Lorekeeper\Core\Game\Attribute\Vitals; | |
| 8 | use Lorekeeper\Core\Game\Tag\Tags; | |
| 9 | use Lorekeeper\Core\Game\Tag\Traits\Taggable; | |
| 10 | ||
| 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 | } |