mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-09-29 18:14:59 +00:00
add point type + Address: add Point field : fix dependency injection of the Point type
This commit is contained in:
28
src/Bundle/ChillMainBundle/Doctrine/Model/PointException.php
Normal file
28
src/Bundle/ChillMainBundle/Doctrine/Model/PointException.php
Normal file
@@ -0,0 +1,28 @@
|
||||
<?php
|
||||
|
||||
namespace Chill\MainBundle\Doctrine\Model;
|
||||
|
||||
use \Exception;
|
||||
|
||||
/**
|
||||
* Description of PointException
|
||||
*
|
||||
*/
|
||||
class PointException extends Exception {
|
||||
|
||||
public static function badCoordinates($lon, $lat)
|
||||
{
|
||||
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)
|
||||
{
|
||||
return new self("la chaine JSON n'est pas valide : $str");
|
||||
|
||||
}
|
||||
|
||||
public static function badGeoType()
|
||||
{
|
||||
return new self("le type de l'objet GeoJSON est invalide");
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user