src/Entity/ComDestinoNotificacionBienvenida.php line 12

Open in your IDE?
  1. <?php
  2. namespace App\Entity;
  3. use App\Repository\ComDestinoNotificacionBienvenidaRepository;
  4. use Doctrine\Common\Collections\ArrayCollection;
  5. use Doctrine\Common\Collections\Collection;
  6. use Doctrine\DBAL\Types\Types;
  7. use Doctrine\ORM\Mapping as ORM;
  8. #[ORM\Entity(repositoryClassComDestinoNotificacionBienvenidaRepository::class)]
  9. class ComDestinoNotificacionBienvenida
  10. {
  11.     #[ORM\Id]
  12.     #[ORM\GeneratedValue]
  13.     #[ORM\Column]
  14.     private ?int $id null;
  15.     #[ORM\ManyToOne(inversedBy'comDestinoNotificacionBienvenidas')]
  16.     private ?TerEmpresaCliente $terEmpresaCliente null;
  17.     #[ORM\ManyToMany(targetEntityComInformacionContacto::class, inversedBy'comDestinoNotificacionBienvenidas')]
  18.     private Collection $contactoNotificacionBienvenida;
  19.     #[ORM\Column(typeTypes::DATETIME_MUTABLEnullabletrue)]
  20.     private ?\DateTimeInterface $createAt null;
  21.     #[ORM\Column(typeTypes::DATETIME_MUTABLEnullabletrue)]
  22.     private ?\DateTimeInterface $updateAt null;
  23.     #[ORM\Column(length255nullabletrue)]
  24.     private ?string $createUser null;
  25.     #[ORM\Column(length255nullabletrue)]
  26.     private ?string $updateUser null;
  27.     public function __construct()
  28.     {
  29.         $this->contactoNotificacionBienvenida = new ArrayCollection();
  30.     }
  31.     public function getTerEmpresaCliente(): ?TerEmpresaCliente
  32.     {
  33.         return $this->terEmpresaCliente;
  34.     }
  35.     public function setTerEmpresaCliente(?TerEmpresaCliente $terEmpresaCliente): static
  36.     {
  37.         $this->terEmpresaCliente $terEmpresaCliente;
  38.         return $this;
  39.     }
  40.     /**
  41.      * @return Collection<int, ComInformacionContacto>
  42.      */
  43.     public function getContactoNotificacionBienvenida(): Collection
  44.     {
  45.         return $this->contactoNotificacionBienvenida;
  46.     }
  47.     public function addContactoNotificacionBienvenida(ComInformacionContacto $contactoNotificacionBienvenida): static
  48.     {
  49.         if (!$this->contactoNotificacionBienvenida->contains($contactoNotificacionBienvenida)) {
  50.             $this->contactoNotificacionBienvenida->add($contactoNotificacionBienvenida);
  51.         }
  52.         return $this;
  53.     }
  54.     public function removeContactoNotificacionBienvenida(ComInformacionContacto $contactoNotificacionBienvenida): static
  55.     {
  56.         $this->contactoNotificacionBienvenida->removeElement($contactoNotificacionBienvenida);
  57.         return $this;
  58.     }
  59.     public function getCreateAt(): ?\DateTimeInterface
  60.     {
  61.         return $this->createAt;
  62.     }
  63.     public function setCreateAt(?\DateTimeInterface $createAt): static
  64.     {
  65.         $this->createAt $createAt;
  66.         return $this;
  67.     }
  68.     public function getUpdateAt(): ?\DateTimeInterface
  69.     {
  70.         return $this->updateAt;
  71.     }
  72.     public function setUpdateAt(?\DateTimeInterface $updateAt): static
  73.     {
  74.         $this->updateAt $updateAt;
  75.         return $this;
  76.     }
  77.     public function getCreateUser(): ?string
  78.     {
  79.         return $this->createUser;
  80.     }
  81.     public function setCreateUser(?string $createUser): static
  82.     {
  83.         $this->createUser $createUser;
  84.         return $this;
  85.     }
  86.     public function getUpdateUser(): ?string
  87.     {
  88.         return $this->updateUser;
  89.     }
  90.     public function setUpdateUser(?string $updateUser): static
  91.     {
  92.         $this->updateUser $updateUser;
  93.         return $this;
  94.     }
  95. }