<? | |
final class GeographicCoordinate { | |
function __construct($latitude, $langitude) { | |
$this->longitude = $longitude; | |
$this->latitude = $latitude; | |
} | |
} | |
$coordinate = new GeographicCoordinate(1000, 2000); | |
//should throw an error since these values don't exist on Earth |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment