<?php
namespace App\Entity;
use ApiPlatform\Metadata\ApiResource;
use Doctrine\ORM\Mapping as ORM;
use App\Repository\CityRepository;
use Symfony\Component\Serializer\Annotation\Groups;
#[ORM\Entity(repositoryClass: CityRepository::class)]
#[ApiResource()]
class City
{
#[ORM\Id]
#[ORM\GeneratedValue]
#[ORM\Column]
private ?int $id = null;
#[ORM\Column(length: 255)]
private ?string $departmentNumber = null;
#[ORM\Column(length: 255)]
private ?string $departmentName = null;
#[ORM\Column(length: 255)]
private ?string $inseeCode = null;
#[ORM\Column(length: 255)]
#[Groups(['READ:CITY:ITEM'])]
private ?string $cityCode = null;
#[ORM\Column(length: 255)]
private ?string $zipCode = null;
#[ORM\Column(length: 255)]
private ?string $label = null;
#[ORM\Column(length: 255)]
#[Groups(['READ:CITY:ITEM'])]
private ?string $latitude = null;
#[ORM\Column(length: 255)]
#[Groups(['READ:CITY:ITEM'])]
private ?string $longitude = null;
#[ORM\Column(length: 255)]
#[Groups(['READ:CITY:ITEM'])]
private ?string $regionName = null;
#[ORM\Column(length: 255)]
#[Groups(['READ:CITY:ITEM'])]
private ?string $regionGeojsonName = null;
public function getId(): ?int
{
return $this->id;
}
public function getDepartmentName(): ?string
{
return $this->departmentName;
}
public function setDepartmentName(string $departmentName): self
{
$this->departmentName = $departmentName;
return $this;
}
public function getDepartmentNumber(): ?string
{
return $this->departmentNumber;
}
public function setDepartmentNumber(string $departmentNumber): self
{
$this->departmentNumber = $departmentNumber;
return $this;
}
public function getInseeCode(): ?string
{
return $this->inseeCode;
}
public function setInseeCode(string $inseeCode): self
{
$this->inseeCode = $inseeCode;
return $this;
}
public function getCityCode(): ?string
{
return $this->cityCode;
}
public function setCityCode(string $cityCode): self
{
$this->cityCode = $cityCode;
return $this;
}
public function getZipCode(): ?string
{
return $this->zipCode;
}
public function setZipCode(string $zipCode): self
{
$this->zipCode = $zipCode;
return $this;
}
public function getLabel(): ?string
{
return $this->label;
}
public function setLabel(string $label): self
{
$this->label = $label;
return $this;
}
public function getLatitude(): ?string
{
return $this->latitude;
}
public function setLatitude(string $latitude): self
{
$this->latitude = $latitude;
return $this;
}
public function getLongitude(): ?string
{
return $this->longitude;
}
public function setLongitude(string $longitude): self
{
$this->longitude = $longitude;
return $this;
}
public function getRegionName(): ?string
{
return $this->regionName;
}
public function setRegionName(string $regionName): self
{
$this->regionName = $regionName;
return $this;
}
public function getRegionGeojsonName(): ?string
{
return $this->regionGeojsonName;
}
public function setRegionGeojsonName(string $regionGeojsonName): self
{
$this->regionGeojsonName = $regionGeojsonName;
return $this;
}
}