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