<?phpnamespace App\Domain\Entity;use App\Shared\Domain\ApplicationCore\Interfaces\EntityInterface;use DateTimeInterface;use Doctrine\DBAL\Types\Types;use Doctrine\ORM\Mapping as ORM;use Symfony\Component\Uid\Uuid;use Symfony\Component\Validator\Constraints as Assert;class Interviniente implements EntityInterface{ private ?Uuid $id = null; private ?Entidad $entidad = null; /** * @var string|null * @Assert\NotBlank(message="not_blank") */ private ?string $direccion = null; /** * @var string|null * @Assert\NotBlank(message="not_blank") * @Assert\Regex( * pattern="/^[0-9]+$/", * match=true, * message="The value {{ value }} is not a valid phone number" * ) */ private ?string $telefono = null; /** * @var string|null * @Assert\Email(message="is_not_valid") */ private ?string $email = null; private ?bool $active = null; private ?DateTimeInterface $createdAt; private ?DateTimeInterface $updatedAt; private ?DateTimeInterface $deletedAt = null; public function getId(): ?Uuid { return $this->id; } public function getEntidad(): ?Entidad { return $this->entidad; } public function setEntidad(?Entidad $entidad): static { $this->entidad = $entidad; return $this; } public function getDireccion(): ?string { return $this->direccion; } public function setDireccion(?string $direccion): static { $this->direccion = $direccion; return $this; } public function getTelefono(): ?string { return $this->telefono; } public function setTelefono(?string $telefono): static { $this->telefono = $telefono; return $this; } public function getEmail(): ?string { return $this->email; } public function setEmail(?string $email): static { $this->email = $email; return $this; } public function isActive(): ?bool { return $this->active; } public function setActive(?bool $active): static { $this->active = $active; return $this; } 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; }}