src/Domain/Entity/Localidad.php line 9

Open in your IDE?
  1. <?php
  2. namespace App\Domain\Entity;
  3. use Doctrine\DBAL\Types\Types;
  4. use Doctrine\ORM\Mapping as ORM;
  5. use Symfony\Component\Uid\Uuid;
  6. class Localidad
  7. {
  8.     private ?string $nombre null;
  9.     private ?Uuid $id null;
  10.     private ?\DateTimeInterface $createdAt null;
  11.     private ?\DateTimeInterface $updatedAt null;
  12.     private ?\DateTimeInterface $deletedAt null;
  13.     private ?Municipio $municipio null;
  14.     public function __toString(): string
  15.     {
  16.         return $this->getNombre()??'Localidad Sin Definir';
  17.     }
  18.     public function getNombre(): ?string
  19.     {
  20.         return $this->nombre;
  21.     }
  22.     public function setNombre(?string $nombre): static
  23.     {
  24.         $this->nombre $nombre;
  25.         return $this;
  26.     }
  27.     public function getId(): ?Uuid
  28.     {
  29.         return $this->id;
  30.     }
  31.     public function getCreatedAt(): ?\DateTimeInterface
  32.     {
  33.         return $this->createdAt;
  34.     }
  35.     public function setCreatedAt(\DateTimeInterface $createdAt): static
  36.     {
  37.         $this->createdAt $createdAt;
  38.         return $this;
  39.     }
  40.     public function getUpdatedAt(): ?\DateTimeInterface
  41.     {
  42.         return $this->updatedAt;
  43.     }
  44.     public function setUpdatedAt(\DateTimeInterface $updatedAt): static
  45.     {
  46.         $this->updatedAt $updatedAt;
  47.         return $this;
  48.     }
  49.     public function getDeletedAt(): ?\DateTimeInterface
  50.     {
  51.         return $this->deletedAt;
  52.     }
  53.     public function setDeletedAt(?\DateTimeInterface $deletedAt): static
  54.     {
  55.         $this->deletedAt $deletedAt;
  56.         return $this;
  57.     }
  58.     public function getMunicipio(): ?Municipio
  59.     {
  60.         return $this->municipio;
  61.     }
  62.     public function setMunicipio(?Municipio $municipio): static
  63.     {
  64.         $this->municipio $municipio;
  65.         return $this;
  66.     }
  67. }