src/Entity/City.php line 9

Open in your IDE?
  1. <?php
  2. namespace App\Entity;
  3. use App\Repository\CityRepository;
  4. use Doctrine\ORM\Mapping as ORM;
  5. #[ORM\Entity(repositoryClassCityRepository::class)]
  6. class City
  7. {
  8.     #[ORM\Id]
  9.     #[ORM\GeneratedValue]
  10.     #[ORM\Column]
  11.     private ?int $id null;
  12.     #[ORM\Column(length255)]
  13.     private ?string $name null;
  14.     #[ORM\Column(length10)]
  15.     private ?string $zipCode null;
  16.     #[ORM\Column(length10)]
  17.     private ?string $code null;
  18.     #[ORM\Column]
  19.     private ?bool $deleted null;
  20.     #[ORM\ManyToOne(inversedBy'cities')]
  21.     private ?Tgi $tgi null;
  22.     public function getId(): ?int
  23.     {
  24.         return $this->id;
  25.     }
  26.     public function getName(): ?string
  27.     {
  28.         return $this->name;
  29.     }
  30.     public function setName(string $name): static
  31.     {
  32.         $this->name $name;
  33.         return $this;
  34.     }
  35.     public function getZipCode(): ?string
  36.     {
  37.         return $this->zipCode;
  38.     }
  39.     public function setZipCode(string $zipCode): static
  40.     {
  41.         $this->zipCode $zipCode;
  42.         return $this;
  43.     }
  44.     public function getCode(): ?string
  45.     {
  46.         return $this->code;
  47.     }
  48.     public function setCode(string $code): static
  49.     {
  50.         $this->code $code;
  51.         return $this;
  52.     }
  53.     public function isDeleted(): ?bool
  54.     {
  55.         return $this->deleted;
  56.     }
  57.     public function setDeleted(bool $deleted): static
  58.     {
  59.         $this->deleted $deleted;
  60.         return $this;
  61.     }
  62.     public function getTgi(): ?Tgi
  63.     {
  64.         return $this->tgi;
  65.     }
  66.     public function setTgi(?Tgi $tgi): static
  67.     {
  68.         $this->tgi $tgi;
  69.         return $this;
  70.     }
  71. }