| Total Complexity | 6 |
| Total Lines | 30 |
| Duplicated Lines | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php declare(strict_types=1); |
||
| 11 | final class SlidingPuzzleFactory implements PuzzleFactory |
||
| 12 | { |
||
| 13 | /** @var string */ |
||
| 14 | private $separator; |
||
| 15 | |||
| 16 | public function __construct(string $separator) |
||
| 19 | } |
||
| 20 | |||
| 21 | public static function make(): PuzzleFactory |
||
| 22 | { |
||
| 23 | return new self(','); |
||
| 24 | } |
||
| 25 | |||
| 26 | public function fromString(string $puzzle): Puzzle |
||
| 41 | } |
||
| 42 | } |
||
| 43 |