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.      */
  16.     protected ?string $direccion null;
  17.     /**
  18.      * @var string|null
  19.      * @Assert\Regex(
  20.      *     pattern="/^[0-9]+$/",
  21.      *     match=true,
  22.      *     message="The value {{ value }} is not a valid phone number"
  23.      * )
  24.      */
  25.     protected ?string $telefono null;
  26.     /**
  27.      * @var string|null
  28.      * @Assert\Email(message="is_not_valid")
  29.      */
  30.     private ?string $email null;
  31.     private ?bool $active null;
  32.     private ?DateTimeInterface $createdAt;
  33.     private ?DateTimeInterface $updatedAt;
  34.     private ?DateTimeInterface $deletedAt null;
  35.     public function __construct()
  36.     {
  37.         $this->active true;
  38.     }
  39.     public function getId(): ?Uuid
  40.     {
  41.         return $this->id;
  42.     }
  43.     public function getEntidad(): ?Entidad
  44.     {
  45.         return $this->entidad;
  46.     }
  47.     public function setEntidad(?Entidad $entidad): static
  48.     {
  49.         $this->entidad $entidad;
  50.         return $this;
  51.     }
  52.     public function getDireccion(): ?string
  53.     {
  54.         return $this->direccion;
  55.     }
  56.     public function setDireccion(?string $direccion): static
  57.     {
  58.         $this->direccion $direccion;
  59.         return $this;
  60.     }
  61.     public function getTelefono(): ?string
  62.     {
  63.         return $this->telefono;
  64.     }
  65.     public function setTelefono(?string $telefono): static
  66.     {
  67.         $this->telefono $telefono;
  68.         return $this;
  69.     }
  70.     public function getEmail(): ?string
  71.     {
  72.         return $this->email;
  73.     }
  74.     public function setEmail(?string $email): static
  75.     {
  76.         $this->email $email;
  77.         return $this;
  78.     }
  79.     public function isActive(): ?bool
  80.     {
  81.         return $this->active;
  82.     }
  83.     public function setActive(?bool $active): static
  84.     {
  85.         $this->active $active;
  86.         return $this;
  87.     }
  88.     public function getCreatedAt(): ?DateTimeInterface
  89.     {
  90.         return $this->createdAt;
  91.     }
  92.     public function setCreatedAt(DateTimeInterface $createdAt): static
  93.     {
  94.         $this->createdAt $createdAt;
  95.         return $this;
  96.     }
  97.     public function getUpdatedAt(): ?DateTimeInterface
  98.     {
  99.         return $this->updatedAt;
  100.     }
  101.     public function setUpdatedAt(DateTimeInterface $updatedAt): static
  102.     {
  103.         $this->updatedAt $updatedAt;
  104.         return $this;
  105.     }
  106.     public function getDeletedAt(): ?DateTimeInterface
  107.     {
  108.         return $this->deletedAt;
  109.     }
  110.     public function setDeletedAt(?DateTimeInterface $deletedAt): static
  111.     {
  112.         $this->deletedAt $deletedAt;
  113.         return $this;
  114.     }
  115. }