src/Uniski/ResourceBundle/Entity/ValueObject/GeoLocation.php line 13

Open in your IDE?
  1. <?php
  2. namespace Uniski\ResourceBundle\Entity\ValueObject;
  3. use Doctrine\ORM\Mapping as ORM;
  4. /**
  5. * GeoLocation
  6. * @ORM\Embeddable
  7. */
  8. class GeoLocation
  9. {
  10.   /**
  11.    * @var  decimal 
  12.    * @ORM\Column(type="float", precision=10, scale=6, nullable=true)
  13.    */
  14.   protected $latitude;
  15.   /**
  16.    * @var  decimal
  17.    * @ORM\Column(type="float", precision=10, scale=6, nullable=true)
  18.    */
  19.   protected $longitude;
  20.   public function __construct($latitude$longitude) {
  21.       $this->latitude $latitude;
  22.       $this->longitude $longitude;
  23.   }
  24.   public function getLatitude()
  25.   {
  26.       return $this->latitude;
  27.   }
  28.   public function getLongitude()
  29.   {
  30.       return $this->longitude;
  31.   }
  32.   public function setLatitude($latitude)
  33.   {
  34.       $this->latitude $latitude;
  35.   }
  36.   public function setLongitude($longitude)
  37.   {
  38.       $this->longitude $longitude;
  39.   }
  40. }