mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-09-29 10:05:03 +00:00
add type hinting in Point and PointException
This commit is contained in:
@@ -10,18 +10,17 @@ use \Exception;
|
||||
*/
|
||||
class PointException extends Exception {
|
||||
|
||||
public static function badCoordinates($lon, $lat)
|
||||
public static function badCoordinates($lon, $lat): self
|
||||
{
|
||||
return new self("les coordonnées fournies sont invalides dans le système de projection utilisé (longitude = $lon , latitude = $lat)");
|
||||
}
|
||||
|
||||
public static function badJsonString($str)
|
||||
public static function badJsonString($str): self
|
||||
{
|
||||
return new self("la chaine JSON n'est pas valide : $str");
|
||||
|
||||
}
|
||||
|
||||
public static function badGeoType()
|
||||
public static function badGeoType(): self
|
||||
{
|
||||
return new self("le type de l'objet GeoJSON est invalide");
|
||||
}
|
||||
|
Reference in New Issue
Block a user