Lines 100.00% 3 / 3
Methods 100.00% 3 / 3
Classes 100.00% 1 / 1
Name Lines Methods CRAP
 __construct 100.00% 1 / 1 100.00% 1 / 1 1
 move 100.00% 1 / 1 100.00% 1 / 1 1
 change 100.00% 1 / 1 100.00% 1 / 1 1
10final class MapPlayer
11{
12    public function __construct(
13        public readonly Player $player,
14        public private(set) MapSpot $spot,
15        public private(set) CombatState $state,
16    ) {}
17
18    public function move(MapSpot $spot): void
19    {
20        $this->spot = $spot;
21    }
22
23    public function change(CombatState $state): void
24    {
25        $this->state = $state;
26    }
27}