src/Entity/CompareSimilarityPoint/ExtraDataForCompare/Location.php line 11

Open in your IDE?
  1. <?php
  2. namespace App\Entity\CompareSimilarityPoint\ExtraDataForCompare;
  3. use App\Entity\Traits\IdTrait;
  4. use Doctrine\ORM\Mapping as ORM;
  5. /**
  6.  * @ORM\Entity
  7.  */
  8. class Location
  9. {
  10.     use IdTrait;
  11.    
  12.     public function __construct(
  13.         /**
  14.          * @ORM\Column(type="string", length="255", nullable=true)
  15.          */
  16.         private ?string $name,
  17.         /**
  18.          * @ORM\Column(type="float", nullable=true)
  19.          */
  20.         private ?float  $lat,
  21.         /**
  22.          * @ORM\Column(type="float", nullable=true)
  23.          */
  24.         private ?float  $lng,
  25.          /**
  26.          * @ORM\Column(type="string", length=255, nullable=true)
  27.          */
  28.         private ?string $fullName
  29.     ){}
  30.     /**
  31.      * @return string|null
  32.      */
  33.     public function getName(): ?string
  34.     {
  35.         return $this->name;
  36.     }
  37.     /**
  38.      * @param string|null $name
  39.      */
  40.     public function setName(?string $name): self
  41.     {
  42.         $this->name = $name;
  43.         return $this;
  44.     }
  45.     /**
  46.      * @return float|null
  47.      */
  48.     public function getLat(): ?float
  49.     {
  50.         return $this->lat;
  51.     }
  52.     /**
  53.      * @param float|null $lat
  54.      */
  55.     public function setLat(?float $lat): self
  56.     {
  57.         $this->lat = $lat;
  58.         return $this;
  59.     }
  60.     /**
  61.      * @return float|null
  62.      */
  63.     public function getLng(): ?float
  64.     {
  65.         return $this->lng;
  66.     }
  67.     /**
  68.      * @param float|null $lng
  69.      */
  70.     public function setLng(?float $lng): self
  71.     {
  72.         $this->lng = $lng;
  73.         return $this;
  74.     }
  75.     public function getFullName(): ?string
  76.     {
  77.         return $this->fullName;
  78.     }
  79.     public function setFullName(?string $fullName): self
  80.     {
  81.         $this->fullName = $fullName;
  82.         return $this;
  83.     }
  84. }