src/Admin/Entity/StdGeoMap.php line 19

Open in your IDE?
  1. <?php
  2. namespace App\Admin\Entity;
  3. use Doctrine\Common\Collections\ArrayCollection;
  4. use Doctrine\Common\Collections\Collection;
  5. use Doctrine\ORM\Mapping as ORM;
  6. /**
  7.  * StdRoles
  8.  */
  9. #[ORM\Table(
  10.     name'std_geo_map',
  11.     indexes: [
  12.         new ORM\Index(name'idx_std_geo_map_municipality_code'columns: ['municipality_code'])
  13.     ]
  14. )]
  15. #[ORM\Entity]
  16. class StdGeoMap /* implements \Serializable */
  17. {
  18.     #[ORM\Column(name'id'type'integer'nullablefalseoptions: ['unsigned' => true'comment' => 'Map unique identifier'])]
  19.     #[ORM\Id]
  20.     #[ORM\GeneratedValue(strategy'IDENTITY')]
  21.     private $id;
  22.     #[ORM\Column(name'municipality'type'string'length255nullablefalseoptions: ['comment' => 'Municipality name'])]
  23.     private $municipalityName;
  24.     #[ORM\Column(name'region'type'string'length255nullabletrueoptions: ['comment' => 'Region name'])]
  25.     private $regionName;
  26.     #[ORM\Column(name'municipality_code'type'integer'nullablefalseoptions: ['comment' => 'Municipality Code'])]
  27.     private $municipalityCode;
  28.     #[ORM\Column(name'type'type'string'length255nullablefalseoptions: ['comment' => 'Type'])]
  29.     private $type;
  30.     #[ORM\Column(name'district'type'string'length255nullablefalseoptions: ['comment' => 'District name'])]
  31.     private $districtName;
  32.     #[ORM\Column(name'district_code'type'integer'nullablefalseoptions: ['comment' => 'District code'])]
  33.     private $districtCode;
  34.     #[ORM\Column(name'geo_point_2d'type'json'nullabletrueoptions: ['comment' => 'Geographical point in 2D (longitude, latitude)'])]
  35.     private $geoPoint2d;
  36.     #[ORM\Column(name'geo_shape'type'geometry'options: ['comment' => 'Geographical shape data'])]
  37.     private $geoShape;
  38.     #[ORM\OneToOne(mappedBy'geoMap'targetEntityStdDomainsValues::class)]
  39.     private $domainValue;
  40.     public function __construct()
  41.     {
  42.     }
  43.     public function getId(): ?int
  44.     {
  45.         return $this->id;
  46.     }
  47.     /**
  48.      * @return mixed
  49.      */
  50.     public function getMunicipalityName()
  51.     {
  52.         return $this->municipalityName;
  53.     }
  54.     /**
  55.      * @param mixed $municipalityName
  56.      */
  57.     public function setMunicipalityName($municipalityName): void
  58.     {
  59.         $this->municipalityName $municipalityName;
  60.     }
  61.     /**
  62.      * @return mixed
  63.      */
  64.     public function getMunicipalityCode()
  65.     {
  66.         return $this->municipalityCode;
  67.     }
  68.     /**
  69.      * @param mixed $municipalityCode
  70.      */
  71.     public function setMunicipalityCode($municipalityCode): void
  72.     {
  73.         $this->municipalityCode $municipalityCode;
  74.     }
  75.     /**
  76.      * @return mixed
  77.      */
  78.     public function getType()
  79.     {
  80.         return $this->type;
  81.     }
  82.     /**
  83.      * @param mixed $type
  84.      */
  85.     public function setType($type): void
  86.     {
  87.         $this->type $type;
  88.     }
  89.     /**
  90.      * @return mixed
  91.      */
  92.     public function getDistrictName()
  93.     {
  94.         return $this->districtName;
  95.     }
  96.     /**
  97.      * @param mixed $districtName
  98.      */
  99.     public function setDistrictName($districtName): void
  100.     {
  101.         $this->districtName $districtName;
  102.     }
  103.     /**
  104.      * @return mixed
  105.      */
  106.     public function getDistrictCode()
  107.     {
  108.         return $this->districtCode;
  109.     }
  110.     /**
  111.      * @param mixed $districtCode
  112.      */
  113.     public function setDistrictCode($districtCode): void
  114.     {
  115.         $this->districtCode $districtCode;
  116.     }
  117.     /**
  118.      * @return mixed
  119.      */
  120.     public function getGeoPoint2d()
  121.     {
  122.         return $this->geoPoint2d;
  123.     }
  124.     /**
  125.      * @param mixed $geoPoint2d
  126.      */
  127.     public function setGeoPoint2d($geoPoint2d): void
  128.     {
  129.         $this->geoPoint2d $geoPoint2d;
  130.     }
  131.     /**
  132.      * @return mixed
  133.      */
  134.     public function getGeoShape()
  135.     {
  136.         return $this->geoShape;
  137.     }
  138.     /**
  139.      * @param mixed $geoShape
  140.      */
  141.     public function setGeoShape($geoShape): void
  142.     {
  143.         $this->geoShape $geoShape;
  144.     }
  145.     /**
  146.      * @return mixed
  147.      */
  148.     public function getRegionName()
  149.     {
  150.         return $this->regionName;
  151.     }
  152.     /**
  153.      * @param mixed $regionName
  154.      */
  155.     public function setRegionName($regionName): void
  156.     {
  157.         $this->regionName $regionName;
  158.     }
  159.     public function getDomainValue(): ?StdDomainsValues
  160.     {
  161.         return $this->domainValue;
  162.     }
  163. }