Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
<?
final class GeographicCoordinate{
function __construct($latitude, $langitude) {
if (!$this->isValidLatitude($latitude)) {
throw new InvalidLatitudeException($latitude);
}
//...
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment