| 1 | <?php |
||
| 22 | class Point |
||
| 23 | { |
||
| 24 | /** |
||
| 25 | * @var int |
||
| 26 | */ |
||
| 27 | private $iX; |
||
| 28 | /** |
||
| 29 | * @var int |
||
| 30 | */ |
||
| 31 | private $iY; |
||
| 32 | |||
| 33 | /** |
||
| 34 | * Point constructor. |
||
| 35 | * |
||
| 36 | * @param int $x |
||
| 37 | * @param int $y |
||
| 38 | */ |
||
| 39 | 3 | public function __construct(int $x, int $y) |
|
| 44 | |||
| 45 | /** |
||
| 46 | * @return int |
||
| 47 | */ |
||
| 48 | 3 | public function getX() |
|
| 52 | |||
| 53 | /** |
||
| 54 | * @return int |
||
| 55 | */ |
||
| 56 | 3 | public function getY() |
|
| 60 | |||
| 61 | 1 | public function move(Vector $oVector) |
|
| 68 | } |
||
| 69 |