Point
class Point (View source)
A value object which has X and Y coordinates.
Properties
protected int | $x | ||
protected int | $y |
Methods
__construct(int $x, int $y)
Point constructor.
int
getX()
Returns the x-coordinate of the point.
int
getY()
Returns the y-coordinate of the point.
__toString()
No description
verify(int|mixed $coordinate)
Verifies that the coordinate is valid.