Skip to content

Instantly share code, notes, and snippets.



Last active Nov 17, 2020
What would you like to do?
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
You can’t perform that action at this time.