<?php
namespace App\Domain\Entity;
use Doctrine\DBAL\Types\Types;
use Doctrine\ORM\Mapping as ORM;
use Symfony\Component\Uid\Uuid;
class Localidad
{
private ?string $nombre = null;
private ?Uuid $id = null;
private ?\DateTimeInterface $createdAt = null;
private ?\DateTimeInterface $updatedAt = null;
private ?\DateTimeInterface $deletedAt = null;
private ?Municipio $municipio = null;
public function __toString(): string
{
return $this->getNombre()??'Localidad Sin Definir';
}
public function getNombre(): ?string
{
return $this->nombre;
}
public function setNombre(?string $nombre): static
{
$this->nombre = $nombre;
return $this;
}
public function getId(): ?Uuid
{
return $this->id;
}
public function getCreatedAt(): ?\DateTimeInterface
{
return $this->createdAt;
}
public function setCreatedAt(\DateTimeInterface $createdAt): static
{
$this->createdAt = $createdAt;
return $this;
}
public function getUpdatedAt(): ?\DateTimeInterface
{
return $this->updatedAt;
}
public function setUpdatedAt(\DateTimeInterface $updatedAt): static
{
$this->updatedAt = $updatedAt;
return $this;
}
public function getDeletedAt(): ?\DateTimeInterface
{
return $this->deletedAt;
}
public function setDeletedAt(?\DateTimeInterface $deletedAt): static
{
$this->deletedAt = $deletedAt;
return $this;
}
public function getMunicipio(): ?Municipio
{
return $this->municipio;
}
public function setMunicipio(?Municipio $municipio): static
{
$this->municipio = $municipio;
return $this;
}
}