src/Entity/ComInformacionContacto.php line 12

Open in your IDE?
  1. <?php
  2. namespace App\Entity;
  3. use App\Repository\ComInformacionContactoRepository;
  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(repositoryClassComInformacionContactoRepository::class)]
  9. class ComInformacionContacto
  10. {
  11.     #[ORM\Id]
  12.     #[ORM\GeneratedValue]
  13.     #[ORM\Column]
  14.     private ?int $id null;
  15.     #[ORM\Column(length255nullabletrue)]
  16.     private ?string $nombre null;
  17.     #[ORM\Column(length255nullabletrue)]
  18.     private ?string $cargo null;
  19.     #[ORM\Column(length20nullabletrue)]
  20.     private ?string $telefono null;
  21.     #[ORM\Column(length255nullabletrue)]
  22.     private ?string $correo null;
  23.     #[ORM\ManyToOne(inversedBy'InformacionContacto')]
  24.     private ?ComProspecto $comProspectoInformacionContacto null;
  25.     #[ORM\Column(typeTypes::DATETIME_MUTABLE)]
  26.     private ?\DateTimeInterface $createAt null;
  27.     #[ORM\Column(length255)]
  28.     private ?string $createUser null;
  29.     #[ORM\Column(typeTypes::DATETIME_MUTABLE)]
  30.     private ?\DateTimeInterface $updateAt null;
  31.     #[ORM\Column(length255)]
  32.     private ?string $updateUser null;
  33.     #[ORM\ManyToMany(targetEntityComClientesTarifas::class, mappedBy'contactoC170Cliente')]
  34.     private Collection $comClientesTarifas;
  35.     #[ORM\ManyToOne(inversedBy'iformacionContacto')]
  36.     private ?TerEmpresaCliente $terEmpresaCliente null;
  37.     #[ORM\ManyToMany(targetEntityComDestinoNotificacionBienvenida::class, mappedBy'contactoNotificacionBienvenida')]
  38.     private Collection $comDestinoNotificacionBienvenidas;
  39.     #[ORM\ManyToMany(targetEntityComHojaVida::class, mappedBy'comInformacionContacto')]
  40.     private Collection $comHojaVidas;
  41.     #[ORM\OneToMany(mappedBy'comInformacionContacto'targetEntityComMatrizContactosHojaVida::class)]
  42.     private Collection $comMatrizContactosHojaVidas;
  43.     #[ORM\OneToMany(mappedBy'dirigidoA'targetEntityComMapaComunicaciones::class)]
  44.     private Collection $comMapaComunicaciones;
  45.     #[ORM\ManyToMany(targetEntityComComfirmarTarifa::class, mappedBy'comInformacionContactoNotificacion')]
  46.     private Collection $comComfirmarTarifas;
  47.     public function __construct()
  48.     {
  49.         $this->comClientesTarifas = new ArrayCollection();
  50.         $this->comDestinoNotificacionBienvenidas = new ArrayCollection();
  51.         $this->comHojaVidas = new ArrayCollection();
  52.         $this->comMatrizContactosHojaVidas = new ArrayCollection();
  53.         $this->comMapaComunicaciones = new ArrayCollection();
  54.         $this->comComfirmarTarifas = new ArrayCollection();
  55.     }
  56.     public function getId(): ?int
  57.     {
  58.         return $this->id;
  59.     }
  60.     public function getNombre(): ?string
  61.     {
  62.         return $this->nombre;
  63.     }
  64.     public function setNombre(?string $nombre): static
  65.     {
  66.         $this->nombre $nombre;
  67.         return $this;
  68.     }
  69.     public function getCargo(): ?string
  70.     {
  71.         return $this->cargo;
  72.     }
  73.     public function setCargo(?string $cargo): static
  74.     {
  75.         $this->cargo $cargo;
  76.         return $this;
  77.     }
  78.     public function getTelefono(): ?string
  79.     {
  80.         return $this->telefono;
  81.     }
  82.     public function setTelefono(?string $telefono): static
  83.     {
  84.         $this->telefono $telefono;
  85.         return $this;
  86.     }
  87.     public function getCorreo(): ?string
  88.     {
  89.         return $this->correo;
  90.     }
  91.     public function setCorreo(?string $correo): static
  92.     {
  93.         $this->correo $correo;
  94.         return $this;
  95.     }
  96.     public function getComProspectoInformacionContacto(): ?ComProspecto
  97.     {
  98.         return $this->comProspectoInformacionContacto;
  99.     }
  100.     public function setComProspectoInformacionContacto(?ComProspecto $comProspectoInformacionContacto): static
  101.     {
  102.         $this->comProspectoInformacionContacto $comProspectoInformacionContacto;
  103.         return $this;
  104.     }
  105.     public function getCreateAt(): ?\DateTimeInterface
  106.     {
  107.         return $this->createAt;
  108.     }
  109.     public function setCreateAt(\DateTimeInterface $createAt): static
  110.     {
  111.         $this->createAt $createAt;
  112.         return $this;
  113.     }
  114.     public function getCreateUser(): ?string
  115.     {
  116.         return $this->createUser;
  117.     }
  118.     public function setCreateUser(string $createUser): static
  119.     {
  120.         $this->createUser $createUser;
  121.         return $this;
  122.     }
  123.     public function getUpdateAt(): ?\DateTimeInterface
  124.     {
  125.         return $this->updateAt;
  126.     }
  127.     public function setUpdateAt(\DateTimeInterface $updateAt): static
  128.     {
  129.         $this->updateAt $updateAt;
  130.         return $this;
  131.     }
  132.     public function getUpdateUser(): ?string
  133.     {
  134.         return $this->updateUser;
  135.     }
  136.     public function setUpdateUser(string $updateUser): static
  137.     {
  138.         $this->updateUser $updateUser;
  139.         return $this;
  140.     }
  141.     // Funcion para mostrar nombre y cargo
  142.     public function __toString(): string
  143.     {
  144.         return $this->nombre ' - ' $this->cargo;
  145.     }
  146.     /**
  147.      * @return Collection<int, ComClientesTarifas>
  148.      */
  149.     public function getComClientesTarifas(): Collection
  150.     {
  151.         return $this->comClientesTarifas;
  152.     }
  153.     public function addComClientesTarifa(ComClientesTarifas $comClientesTarifa): static
  154.     {
  155.         if (!$this->comClientesTarifas->contains($comClientesTarifa)) {
  156.             $this->comClientesTarifas->add($comClientesTarifa);
  157.             $comClientesTarifa->addContactoC170Cliente($this);
  158.         }
  159.         return $this;
  160.     }
  161.     public function removeComClientesTarifa(ComClientesTarifas $comClientesTarifa): static
  162.     {
  163.         if ($this->comClientesTarifas->removeElement($comClientesTarifa)) {
  164.             $comClientesTarifa->removeContactoC170Cliente($this);
  165.         }
  166.         return $this;
  167.     }
  168.     public function getTerEmpresaCliente(): ?TerEmpresaCliente
  169.     {
  170.         return $this->terEmpresaCliente;
  171.     }
  172.     public function setTerEmpresaCliente(?TerEmpresaCliente $terEmpresaCliente): static
  173.     {
  174.         $this->terEmpresaCliente $terEmpresaCliente;
  175.         return $this;
  176.     }
  177.     /**
  178.      * @return Collection<int, ComDestinoNotificacionBienvenida>
  179.      */
  180.     public function getComDestinoNotificacionBienvenidas(): Collection
  181.     {
  182.         return $this->comDestinoNotificacionBienvenidas;
  183.     }
  184.     public function addComDestinoNotificacionBienvenida(ComDestinoNotificacionBienvenida $comDestinoNotificacionBienvenida): static
  185.     {
  186.         if (!$this->comDestinoNotificacionBienvenidas->contains($comDestinoNotificacionBienvenida)) {
  187.             $this->comDestinoNotificacionBienvenidas->add($comDestinoNotificacionBienvenida);
  188.             $comDestinoNotificacionBienvenida->addContactoNotificacionBienvenida($this);
  189.         }
  190.         return $this;
  191.     }
  192.     public function removeComDestinoNotificacionBienvenida(ComDestinoNotificacionBienvenida $comDestinoNotificacionBienvenida): static
  193.     {
  194.         if ($this->comDestinoNotificacionBienvenidas->removeElement($comDestinoNotificacionBienvenida)) {
  195.             $comDestinoNotificacionBienvenida->removeContactoNotificacionBienvenida($this);
  196.         }
  197.         return $this;
  198.     }
  199.     /**
  200.      * @return Collection<int, ComHojaVida>
  201.      */
  202.     public function getComHojaVidas(): Collection
  203.     {
  204.         return $this->comHojaVidas;
  205.     }
  206.     public function addComHojaVida(ComHojaVida $comHojaVida): static
  207.     {
  208.         if (!$this->comHojaVidas->contains($comHojaVida)) {
  209.             $this->comHojaVidas->add($comHojaVida);
  210.             $comHojaVida->addComInformacionContacto($this);
  211.         }
  212.         return $this;
  213.     }
  214.     public function removeComHojaVida(ComHojaVida $comHojaVida): static
  215.     {
  216.         if ($this->comHojaVidas->removeElement($comHojaVida)) {
  217.             $comHojaVida->removeComInformacionContacto($this);
  218.         }
  219.         return $this;
  220.     }
  221.     /**
  222.      * @return Collection<int, ComMatrizContactosHojaVida>
  223.      */
  224.     public function getComMatrizContactosHojaVidas(): Collection
  225.     {
  226.         return $this->comMatrizContactosHojaVidas;
  227.     }
  228.     public function addComMatrizContactosHojaVida(ComMatrizContactosHojaVida $comMatrizContactosHojaVida): static
  229.     {
  230.         if (!$this->comMatrizContactosHojaVidas->contains($comMatrizContactosHojaVida)) {
  231.             $this->comMatrizContactosHojaVidas->add($comMatrizContactosHojaVida);
  232.             $comMatrizContactosHojaVida->setComInformacionContacto($this);
  233.         }
  234.         return $this;
  235.     }
  236.     public function removeComMatrizContactosHojaVida(ComMatrizContactosHojaVida $comMatrizContactosHojaVida): static
  237.     {
  238.         if ($this->comMatrizContactosHojaVidas->removeElement($comMatrizContactosHojaVida)) {
  239.             // set the owning side to null (unless already changed)
  240.             if ($comMatrizContactosHojaVida->getComInformacionContacto() === $this) {
  241.                 $comMatrizContactosHojaVida->setComInformacionContacto(null);
  242.             }
  243.         }
  244.         return $this;
  245.     }
  246.     /**
  247.      * @return Collection<int, ComMapaComunicaciones>
  248.      */
  249.     public function getComMapaComunicaciones(): Collection
  250.     {
  251.         return $this->comMapaComunicaciones;
  252.     }
  253.     public function addComMapaComunicacione(ComMapaComunicaciones $comMapaComunicacione): static
  254.     {
  255.         if (!$this->comMapaComunicaciones->contains($comMapaComunicacione)) {
  256.             $this->comMapaComunicaciones->add($comMapaComunicacione);
  257.             $comMapaComunicacione->setDirigidoA($this);
  258.         }
  259.         return $this;
  260.     }
  261.     public function removeComMapaComunicacione(ComMapaComunicaciones $comMapaComunicacione): static
  262.     {
  263.         if ($this->comMapaComunicaciones->removeElement($comMapaComunicacione)) {
  264.             // set the owning side to null (unless already changed)
  265.             if ($comMapaComunicacione->getDirigidoA() === $this) {
  266.                 $comMapaComunicacione->setDirigidoA(null);
  267.             }
  268.         }
  269.         return $this;
  270.     }
  271.     /**
  272.      * @return Collection<int, ComComfirmarTarifa>
  273.      */
  274.     public function getComComfirmarTarifas(): Collection
  275.     {
  276.         return $this->comComfirmarTarifas;
  277.     }
  278.     public function addComComfirmarTarifa(ComComfirmarTarifa $comComfirmarTarifa): static
  279.     {
  280.         if (!$this->comComfirmarTarifas->contains($comComfirmarTarifa)) {
  281.             $this->comComfirmarTarifas->add($comComfirmarTarifa);
  282.             $comComfirmarTarifa->addComInformacionContactoNotificacion($this);
  283.         }
  284.         return $this;
  285.     }
  286.     public function removeComComfirmarTarifa(ComComfirmarTarifa $comComfirmarTarifa): static
  287.     {
  288.         if ($this->comComfirmarTarifas->removeElement($comComfirmarTarifa)) {
  289.             $comComfirmarTarifa->removeComInformacionContactoNotificacion($this);
  290.         }
  291.         return $this;
  292.     }
  293. }