Total Complexity | 6 |
Total Lines | 33 |
Duplicated Lines | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php declare(strict_types=1); |
||
18 | final class LazySolver implements PuzzleSolver |
||
19 | { |
||
20 | /** @var SearchStrategyFactory */ |
||
21 | private $strategy; |
||
22 | |||
23 | private function __construct(SearchStrategyFactory $strategy) |
||
24 | { |
||
25 | $this->strategy = $strategy; |
||
26 | } |
||
27 | |||
28 | public static function using(SearchStrategyFactory $strategy): PuzzleSolver |
||
31 | } |
||
32 | |||
33 | public function solve(Puzzle $puzzle): Solutions |
||
51 | } |
||
52 | } |
||
53 |