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