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
3declare(strict_types=1);
4
5namespace Lorekeeper\Server\Event\Map;
6
7use Lorekeeper\Core\Attribute\Health;
8use Lorekeeper\Core\Attribute\Mana;
9use Lorekeeper\Core\Combat\CombatState;
10use Lorekeeper\Core\World\Monster\MonsterSpawnId;
11
12final 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}