for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace JeroenDesloovere\Geolocation;
class Exception extends \Exception
{
public static function curlNotInstalled(): Exception
return new self(
'This method requires cURL (http://php.net/curl), it seems like the extension isn\'t installed.'
);
}
public static function noAddressFoundForCoordinates($latitude, $longitude): Exception
'No address found for coordinates.
With latitude: "' . $latitude . '" and longitude "' . $longitude . '".'
public static function noCoordinatesFoundforAddress(array $addressData): Exception
'No coordinates found for address.
With address: "' . implode(', ', $addressData) . '".'