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
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\Player\PlayerLevel;
11use Lorekeeper\Core\Player\PlayerName;
12use Lorekeeper\Core\World\Map\Cell;
13use Lorekeeper\Core\World\Map\Pad;
14
15final 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}