Last active
November 23, 2023 17:52
-
-
Save mcsee/33f84258133eb9bafbac1f85532527c6 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<? | |
final class Latitude { | |
function __construct($degrees) { | |
if (!$degrees->between(-90, 90)) { | |
throw new InvalidLatitudeException($degrees); | |
} | |
// ... | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment