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 | ||||||
|---|---|---|---|---|---|---|---|---|---|---|
| SeenMonster | 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\World\Monster\MonsterSpawnId; | |
| 11 | ||
| 12 | final readonly class SeenMonster | |
| 13 | { | |
| 14 | /** @mago-expect lint:excessive-parameter-list */ | |
| 15 | public function __construct( | |
| 16 | public MonsterSpawnId $id, | |
| 17 | public CombatState $state, | |
| 18 | public Health $health, | |
| 19 | public Health $maxHealth, | |
| 20 | public Mana $mana, | |
| 21 | public Mana $maxMana, | |
| 22 | ) {} | |
| 23 | } |