Skip to content

Instantly share code, notes, and snippets.

@mcsee
Last active Apr 29, 2021
Embed
What would you like to do?
<?
final class Latitude {
function __construct($degrees) {
if (!$degrees->between(-90, 90)) {
throw new InvalidLatitudeException($latitude);
}
//...
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment