Total Complexity | 6 |
Total Lines | 46 |
Duplicated Lines | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php declare(strict_types=1); |
||
15 | final class PuzzleDescription |
||
16 | { |
||
17 | /** @var Find */ |
||
18 | private $goal; |
||
19 | /** @var bool */ |
||
20 | private $weightedMoves; |
||
21 | /** @var bool */ |
||
22 | private $exhausting; |
||
23 | /** @var Heuristic|null */ |
||
24 | private $heuristic; |
||
25 | |||
26 | public function __construct( |
||
27 | Find $goal, |
||
28 | bool $weightedMoves, |
||
29 | bool $exhausting, |
||
30 | ?Heuristic $heuristic |
||
31 | ) { |
||
32 | $this->goal = $goal; |
||
33 | $this->weightedMoves = $weightedMoves; |
||
34 | $this->exhausting = $exhausting; |
||
35 | $this->heuristic = $heuristic; |
||
36 | } |
||
37 | |||
38 | public function isWeightedMoves(): bool |
||
39 | { |
||
40 | return $this->weightedMoves; |
||
41 | } |
||
42 | |||
43 | public function isExhausting(): bool |
||
44 | { |
||
45 | return $this->exhausting; |
||
46 | } |
||
47 | |||
48 | public function heuristic(): ?Heuristic |
||
51 | } |
||
52 | |||
53 | public function singleSolution(): bool |
||
56 | } |
||
57 | |||
58 | public function onlyBest(): bool |
||
63 |