<?php
namespace App\Admin\Entity;
use Doctrine\Common\Collections\ArrayCollection;
use Doctrine\Common\Collections\Collection;
use Doctrine\ORM\Mapping as ORM;
/**
* StdRoles
*/
#[ORM\Table(
name: 'std_geo_map',
indexes: [
new ORM\Index(name: 'idx_std_geo_map_municipality_code', columns: ['municipality_code'])
]
)]
#[ORM\Entity]
class StdGeoMap /* implements \Serializable */
{
#[ORM\Column(name: 'id', type: 'integer', nullable: false, options: ['unsigned' => true, 'comment' => 'Map unique identifier'])]
#[ORM\Id]
#[ORM\GeneratedValue(strategy: 'IDENTITY')]
private $id;
#[ORM\Column(name: 'municipality', type: 'string', length: 255, nullable: false, options: ['comment' => 'Municipality name'])]
private $municipalityName;
#[ORM\Column(name: 'region', type: 'string', length: 255, nullable: true, options: ['comment' => 'Region name'])]
private $regionName;
#[ORM\Column(name: 'municipality_code', type: 'integer', nullable: false, options: ['comment' => 'Municipality Code'])]
private $municipalityCode;
#[ORM\Column(name: 'type', type: 'string', length: 255, nullable: false, options: ['comment' => 'Type'])]
private $type;
#[ORM\Column(name: 'district', type: 'string', length: 255, nullable: false, options: ['comment' => 'District name'])]
private $districtName;
#[ORM\Column(name: 'district_code', type: 'integer', nullable: false, options: ['comment' => 'District code'])]
private $districtCode;
#[ORM\Column(name: 'geo_point_2d', type: 'json', nullable: true, options: ['comment' => 'Geographical point in 2D (longitude, latitude)'])]
private $geoPoint2d;
#[ORM\Column(name: 'geo_shape', type: 'geometry', options: ['comment' => 'Geographical shape data'])]
private $geoShape;
#[ORM\OneToOne(mappedBy: 'geoMap', targetEntity: StdDomainsValues::class)]
private $domainValue;
public function __construct()
{
}
public function getId(): ?int
{
return $this->id;
}
/**
* @return mixed
*/
public function getMunicipalityName()
{
return $this->municipalityName;
}
/**
* @param mixed $municipalityName
*/
public function setMunicipalityName($municipalityName): void
{
$this->municipalityName = $municipalityName;
}
/**
* @return mixed
*/
public function getMunicipalityCode()
{
return $this->municipalityCode;
}
/**
* @param mixed $municipalityCode
*/
public function setMunicipalityCode($municipalityCode): void
{
$this->municipalityCode = $municipalityCode;
}
/**
* @return mixed
*/
public function getType()
{
return $this->type;
}
/**
* @param mixed $type
*/
public function setType($type): void
{
$this->type = $type;
}
/**
* @return mixed
*/
public function getDistrictName()
{
return $this->districtName;
}
/**
* @param mixed $districtName
*/
public function setDistrictName($districtName): void
{
$this->districtName = $districtName;
}
/**
* @return mixed
*/
public function getDistrictCode()
{
return $this->districtCode;
}
/**
* @param mixed $districtCode
*/
public function setDistrictCode($districtCode): void
{
$this->districtCode = $districtCode;
}
/**
* @return mixed
*/
public function getGeoPoint2d()
{
return $this->geoPoint2d;
}
/**
* @param mixed $geoPoint2d
*/
public function setGeoPoint2d($geoPoint2d): void
{
$this->geoPoint2d = $geoPoint2d;
}
/**
* @return mixed
*/
public function getGeoShape()
{
return $this->geoShape;
}
/**
* @param mixed $geoShape
*/
public function setGeoShape($geoShape): void
{
$this->geoShape = $geoShape;
}
/**
* @return mixed
*/
public function getRegionName()
{
return $this->regionName;
}
/**
* @param mixed $regionName
*/
public function setRegionName($regionName): void
{
$this->regionName = $regionName;
}
public function getDomainValue(): ?StdDomainsValues
{
return $this->domainValue;
}
}