Total Complexity | 8 |
Total Lines | 43 |
Duplicated Lines | 0 % |
Changes | 0 |
1 | <?php |
||
7 | class Puzzle |
||
8 | { |
||
9 | /** |
||
10 | * @var Grid |
||
11 | */ |
||
12 | private $grid; |
||
13 | |||
14 | /** |
||
15 | * @var Location[] |
||
16 | */ |
||
17 | private $presetLocations; |
||
18 | |||
19 | public function __construct(Grid $grid) |
||
20 | { |
||
21 | $this->grid = $grid; |
||
22 | $this->initializePresetLocations(); |
||
23 | } |
||
24 | |||
25 | public function getGrid(): Grid |
||
26 | { |
||
27 | return $this->grid; |
||
28 | } |
||
29 | |||
30 | public function setGrid(Grid $grid): void |
||
33 | } |
||
34 | |||
35 | /** |
||
36 | * @return Location[] |
||
37 | */ |
||
38 | public function getPresetLocations(): array |
||
39 | { |
||
40 | return $this->presetLocations; |
||
41 | } |
||
42 | |||
43 | private function initializePresetLocations(): void |
||
50 | } |
||
51 | } |
||
52 | } |
||
53 | } |
||
55 |