Total Complexity | 8 |
Total Lines | 42 |
Duplicated Lines | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php declare(strict_types=1); |
||
11 | final class MazeFactory implements PuzzleFactory |
||
12 | { |
||
13 | /** @var string */ |
||
14 | private $wall; |
||
15 | /** @var string */ |
||
16 | private $goal; |
||
17 | /** @var string */ |
||
18 | private $hero; |
||
19 | |||
20 | public function __construct(string $wall, string $goal, string $hero) |
||
25 | } |
||
26 | |||
27 | public static function make(): PuzzleFactory |
||
28 | { |
||
29 | return new self('#', 'X', 'H'); |
||
30 | } |
||
31 | |||
32 | public function fromString(string $maze): Puzzle |
||
53 | } |
||
54 | } |
||
55 |