1 | <?php |
||
5 | final class Coordinates |
||
6 | { |
||
7 | private $coordinateX; |
||
8 | private $coordinateY; |
||
9 | |||
10 | 2 | public function __construct(int $a_coordinateX, int $a_coordinateY) |
|
15 | |||
16 | 2 | public function coordinateX(): int |
|
20 | |||
21 | 2 | public function coordinateY(): int |
|
25 | |||
26 | 1 | public function equals(Coordinates $coordinates): bool |
|
34 | } |
||
35 |