Total Complexity | 4 |
Total Lines | 26 |
Duplicated Lines | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php declare(strict_types=1); |
||
9 | final class Indexed implements Heuristic |
||
10 | { |
||
11 | private $cache; |
||
12 | private $environment; |
||
13 | |||
14 | private function __construct(array $cache, Environment $environment) |
||
15 | { |
||
16 | $this->cache = $cache; |
||
17 | $this->environment = $environment; |
||
18 | } |
||
19 | |||
20 | public static function heuristic( |
||
21 | array $cache, |
||
22 | Environment $environment |
||
23 | ): Heuristic { |
||
24 | return new self($cache, $environment); |
||
25 | } |
||
26 | |||
27 | public function estimate(string $start, string $goal): float |
||
30 | } |
||
31 | |||
32 | public function environment(): Environment |
||
35 | } |
||
36 | } |
||
37 |