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 | ||||||
|---|---|---|---|---|---|---|---|---|---|---|
| SeenPlayer | 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\Map; | |
| 6 | ||
| 7 | use Lorekeeper\Core\Attribute\Health; | |
| 8 | use Lorekeeper\Core\Attribute\Mana; | |
| 9 | use Lorekeeper\Core\Combat\CombatState; | |
| 10 | use Lorekeeper\Core\Player\PlayerLevel; | |
| 11 | use Lorekeeper\Core\Player\PlayerName; | |
| 12 | use Lorekeeper\Core\World\Map\Cell; | |
| 13 | use Lorekeeper\Core\World\Map\Pad; | |
| 14 | ||
| 15 | final readonly class SeenPlayer | |
| 16 | { | |
| 17 | /** @mago-expect lint:excessive-parameter-list */ | |
| 18 | public function __construct( | |
| 19 | public PlayerName $name, | |
| 20 | public PlayerLevel $level, | |
| 21 | public Cell $cell, | |
| 22 | public Pad $pad, | |
| 23 | public CombatState $state, | |
| 24 | public Health $health, | |
| 25 | public Health $maxHealth, | |
| 26 | public Mana $mana, | |
| 27 | public Mana $maxMana, | |
| 28 | public bool $away, | |
| 29 | ) {} | |
| 30 | } |