1 | <?php |
||
5 | final class Map |
||
6 | { |
||
7 | private $max_coordinates; |
||
8 | private $obstacles; |
||
9 | |||
10 | 2 | public function __construct(Coordinates $max_coordinates, array $some_obstacles) |
|
15 | |||
16 | 2 | public function obstacles(): array |
|
20 | |||
21 | 2 | private function normalize(array $some_obstacles): array |
|
28 | |||
29 | 2 | private function normalizeCoordinate(Coordinates $a_coordinate): Coordinates |
|
46 | } |
||
47 |