Lines 100.00% 4 / 4
Methods 100.00% 3 / 3
Classes 100.00% 1 / 1
Name Lines Methods CRAP
 __construct 100.00% 1 / 1 100.00% 1 / 1 1
 describe 100.00% 1 / 1 100.00% 1 / 1 1
 play 100.00% 2 / 2 100.00% 1 / 1 1
13final readonly class MoveTo implements Action
14{
15    public function __construct(
16        public MapSpot $spot,
17    ) {}
18
19    #[Override]
20    public function describe(): string
21    {
22        return "Move to {$this->spot->cell->value}";
23    }
24
25    #[Override]
26    public function play(StepScript $bot): Generator
27    {
28        yield from $bot->moveTo($this->spot);
29
30        return null;
31    }
32}