src/Domain/Entity/Interviniente.php line 12

Open in your IDE?
  1. <?php
  2. namespace App\Domain\Entity;
  3. use App\Shared\Domain\ApplicationCore\Interfaces\EntityInterface;
  4. use DateTimeInterface;
  5. use Doctrine\DBAL\Types\Types;
  6. use Doctrine\ORM\Mapping as ORM;
  7. use Symfony\Component\Uid\Uuid;
  8. use Symfony\Component\Validator\Constraints as Assert;
  9. class Interviniente implements EntityInterface
  10. {
  11.     private ?Uuid $id null;
  12.     private ?Entidad $entidad null;
  13.     /**
  14.      * @var string|null
  15.      * @Assert\NotBlank(message="not_blank")
  16.      */
  17.     private ?string $direccion null;
  18.     /**
  19.      * @var string|null
  20.      * @Assert\NotBlank(message="not_blank")
  21.      * @Assert\Regex(
  22.      *     pattern="/^[0-9]+$/",
  23.      *     match=true,
  24.      *     message="The value {{ value }} is not a valid phone number"
  25.      * )
  26.      */
  27.     private ?string $telefono null;
  28.     /**
  29.      * @var string|null
  30.      * @Assert\Email(message="is_not_valid")
  31.      */
  32.     private ?string $email null;
  33.     private ?bool $active null;
  34.     private ?DateTimeInterface $createdAt;
  35.     private ?DateTimeInterface $updatedAt;
  36.     private ?DateTimeInterface $deletedAt null;
  37.     public function getId(): ?Uuid
  38.     {
  39.         return $this->id;
  40.     }
  41.     public function getEntidad(): ?Entidad
  42.     {
  43.         return $this->entidad;
  44.     }
  45.     public function setEntidad(?Entidad $entidad): static
  46.     {
  47.         $this->entidad $entidad;
  48.         return $this;
  49.     }
  50.     public function getDireccion(): ?string
  51.     {
  52.         return $this->direccion;
  53.     }
  54.     public function setDireccion(?string $direccion): static
  55.     {
  56.         $this->direccion $direccion;
  57.         return $this;
  58.     }
  59.     public function getTelefono(): ?string
  60.     {
  61.         return $this->telefono;
  62.     }
  63.     public function setTelefono(?string $telefono): static
  64.     {
  65.         $this->telefono $telefono;
  66.         return $this;
  67.     }
  68.     public function getEmail(): ?string
  69.     {
  70.         return $this->email;
  71.     }
  72.     public function setEmail(?string $email): static
  73.     {
  74.         $this->email $email;
  75.         return $this;
  76.     }
  77.     public function isActive(): ?bool
  78.     {
  79.         return $this->active;
  80.     }
  81.     public function setActive(?bool $active): static
  82.     {
  83.         $this->active $active;
  84.         return $this;
  85.     }
  86.     public function getCreatedAt(): ?DateTimeInterface
  87.     {
  88.         return $this->createdAt;
  89.     }
  90.     public function setCreatedAt(DateTimeInterface $createdAt): static
  91.     {
  92.         $this->createdAt $createdAt;
  93.         return $this;
  94.     }
  95.     public function getUpdatedAt(): ?DateTimeInterface
  96.     {
  97.         return $this->updatedAt;
  98.     }
  99.     public function setUpdatedAt(DateTimeInterface $updatedAt): static
  100.     {
  101.         $this->updatedAt $updatedAt;
  102.         return $this;
  103.     }
  104.     public function getDeletedAt(): ?DateTimeInterface
  105.     {
  106.         return $this->deletedAt;
  107.     }
  108.     public function setDeletedAt(?DateTimeInterface $deletedAt): static
  109.     {
  110.         $this->deletedAt $deletedAt;
  111.         return $this;
  112.     }
  113. }