DummyPuzzle   A
last analyzed

Complexity

Total Complexity 5

Size/Duplication

Total Lines 25
Duplicated Lines 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
eloc 6
c 1
b 0
f 0
dl 0
loc 25
rs 10
wmc 5

5 Methods

Rating   Name   Duplication   Size   Complexity  
A representation() 0 3 1
A movesSoFar() 0 3 1
A afterMaking() 0 3 1
A isSolved() 0 3 1
A possibleMoves() 0 3 1
1
<?php declare(strict_types=1);
2
3
namespace Stratadox\PuzzleSolver\Puzzle\Dummy;
4
5
use Stratadox\PuzzleSolver\Move;
6
use Stratadox\PuzzleSolver\Puzzle;
7
use Stratadox\PuzzleSolver\Moves;
8
9
final class DummyPuzzle implements Puzzle
10
{
11
    public function representation(): string
12
    {
13
        return 'Dummy';
14
    }
15
16
    public function afterMaking(Move ...$moves): Puzzle
17
    {
18
        return $this;
19
    }
20
21
    public function isSolved(): bool
22
    {
23
        return true;
24
    }
25
26
    public function movesSoFar(): Moves
27
    {
28
        return Moves::none();
29
    }
30
31
    public function possibleMoves(): Moves
32
    {
33
        return Moves::none();
34
    }
35
}
36