src/Entity/TerAsociado.php line 11

Open in your IDE?
  1. <?php
  2. namespace App\Entity;
  3. use App\Repository\TerAsociadoRepository;
  4. use Doctrine\Common\Collections\ArrayCollection;
  5. use Doctrine\Common\Collections\Collection;
  6. use Doctrine\ORM\Mapping as ORM;
  7. #[ORM\Entity(repositoryClassTerAsociadoRepository::class)]
  8. class TerAsociado
  9. {
  10.     #[ORM\Id]
  11.     #[ORM\GeneratedValue]
  12.     #[ORM\Column]
  13.     private ?int $id null;
  14.     #[ORM\Column(length255)]
  15.     private ?string $nombre null;
  16.     #[ORM\OneToMany(mappedBy'asociado'targetEntityJurDocumentoLegal::class)]
  17.     private Collection $documentoLegal;
  18.     #[ORM\Column(length255)]
  19.     private ?string $email null;
  20.     #[ORM\OneToMany(mappedBy'asociadoNegocio'targetEntityRFInventarioDocumentalComex::class)]
  21.     private Collection $inventarioDocumentalComex;
  22.     #[ORM\OneToMany(mappedBy'empresaAsociado'targetEntityJurProceso::class)]
  23.     private Collection $procesoJuridico;
  24.     #[ORM\OneToMany(mappedBy'empresaAsociado'targetEntityGHVacante::class)]
  25.     private Collection $vacante;
  26.     #[ORM\OneToMany(mappedBy'asociado'targetEntityComProspecto::class)]
  27.     private Collection $comTerAsociado;
  28.     #[ORM\OneToMany(mappedBy'asociado'targetEntityTerEmpresaCliente::class)]
  29.     private Collection $terEmpresaClientes;
  30.     public function __construct()
  31.     {
  32.         $this->documentoLegal = new ArrayCollection();
  33.         $this->inventarioDocumentalComex = new ArrayCollection();
  34.         $this->procesoJuridico = new ArrayCollection();
  35.         $this->vacante = new ArrayCollection();
  36.         $this->comTerAsociado = new ArrayCollection();
  37.         $this->terEmpresaClientes = new ArrayCollection();
  38.     }
  39.     
  40.     public function __toString() {
  41.         return $this->getNombre();
  42.     }
  43.     public function getId(): ?int
  44.     {
  45.         return $this->id;
  46.     }
  47.     public function getNombre(): ?string
  48.     {
  49.         return $this->nombre;
  50.     }
  51.     public function setNombre(string $nombre): static
  52.     {
  53.         $this->nombre $nombre;
  54.         return $this;
  55.     }
  56.     /**
  57.      * @return Collection<int, JurDocumentoLegal>
  58.      */
  59.     public function getDocumentoLegal(): Collection
  60.     {
  61.         return $this->documentoLegal;
  62.     }
  63.     public function addDocumentoLegal(JurDocumentoLegal $documentoLegal): static
  64.     {
  65.         if (!$this->documentoLegal->contains($documentoLegal)) {
  66.             $this->documentoLegal->add($documentoLegal);
  67.             $documentoLegal->setAsociado($this);
  68.         }
  69.         return $this;
  70.     }
  71.     public function removeDocumentoLegal(JurDocumentoLegal $documentoLegal): static
  72.     {
  73.         if ($this->documentoLegal->removeElement($documentoLegal)) {
  74.             // set the owning side to null (unless already changed)
  75.             if ($documentoLegal->getAsociado() === $this) {
  76.                 $documentoLegal->setAsociado(null);
  77.             }
  78.         }
  79.         return $this;
  80.     }
  81.     public function getEmail(): ?string
  82.     {
  83.         return $this->email;
  84.     }
  85.     public function setEmail(string $email): static
  86.     {
  87.         $this->email $email;
  88.         return $this;
  89.     }
  90.     /**
  91.      * @return Collection<int, RFInventarioDocumentalComex>
  92.      */
  93.     public function getInventarioDocumentalComex(): Collection
  94.     {
  95.         return $this->inventarioDocumentalComex;
  96.     }
  97.     public function addInventarioDocumentalComex(RFInventarioDocumentalComex $inventarioDocumentalComex): static
  98.     {
  99.         if (!$this->inventarioDocumentalComex->contains($inventarioDocumentalComex)) {
  100.             $this->inventarioDocumentalComex->add($inventarioDocumentalComex);
  101.             $inventarioDocumentalComex->setAsociadoNegocio($this);
  102.         }
  103.         return $this;
  104.     }
  105.     public function removeInventarioDocumentalComex(RFInventarioDocumentalComex $inventarioDocumentalComex): static
  106.     {
  107.         if ($this->inventarioDocumentalComex->removeElement($inventarioDocumentalComex)) {
  108.             // set the owning side to null (unless already changed)
  109.             if ($inventarioDocumentalComex->getAsociadoNegocio() === $this) {
  110.                 $inventarioDocumentalComex->setAsociadoNegocio(null);
  111.             }
  112.         }
  113.         return $this;
  114.     }
  115.     /**
  116.      * @return Collection<int, JurProceso>
  117.      */
  118.     public function getProcesoJuridico(): Collection
  119.     {
  120.         return $this->procesoJuridico;
  121.     }
  122.     public function addProcesoJuridico(JurProceso $procesoJuridico): static
  123.     {
  124.         if (!$this->procesoJuridico->contains($procesoJuridico)) {
  125.             $this->procesoJuridico->add($procesoJuridico);
  126.             $procesoJuridico->setEmpresaAsociado($this);
  127.         }
  128.         return $this;
  129.     }
  130.     public function removeProcesoJuridico(JurProceso $procesoJuridico): static
  131.     {
  132.         if ($this->procesoJuridico->removeElement($procesoJuridico)) {
  133.             // set the owning side to null (unless already changed)
  134.             if ($procesoJuridico->getEmpresaAsociado() === $this) {
  135.                 $procesoJuridico->setEmpresaAsociado(null);
  136.             }
  137.         }
  138.         return $this;
  139.     }
  140.     /**
  141.      * @return Collection<int, GHVacante>
  142.      */
  143.     public function getVacante(): Collection
  144.     {
  145.         return $this->vacante;
  146.     }
  147.     public function addVacante(GHVacante $vacante): static
  148.     {
  149.         if (!$this->vacante->contains($vacante)) {
  150.             $this->vacante->add($vacante);
  151.             $vacante->setEmpresaAsociado($this);
  152.         }
  153.         return $this;
  154.     }
  155.     public function removeVacante(GHVacante $vacante): static
  156.     {
  157.         if ($this->vacante->removeElement($vacante)) {
  158.             // set the owning side to null (unless already changed)
  159.             if ($vacante->getEmpresaAsociado() === $this) {
  160.                 $vacante->setEmpresaAsociado(null);
  161.             }
  162.         }
  163.         return $this;
  164.     }
  165.     /**
  166.      * @return Collection<int, ComProspecto>
  167.      */
  168.     public function getComTerAsociado(): Collection
  169.     {
  170.         return $this->comTerAsociado;
  171.     }
  172.     public function addComTerAsociado(ComProspecto $comTerAsociado): static
  173.     {
  174.         if (!$this->comTerAsociado->contains($comTerAsociado)) {
  175.             $this->comTerAsociado->add($comTerAsociado);
  176.             $comTerAsociado->setAsociado($this);
  177.         }
  178.         return $this;
  179.     }
  180.     public function removeComTerAsociado(ComProspecto $comTerAsociado): static
  181.     {
  182.         if ($this->comTerAsociado->removeElement($comTerAsociado)) {
  183.             // set the owning side to null (unless already changed)
  184.             if ($comTerAsociado->getAsociado() === $this) {
  185.                 $comTerAsociado->setAsociado(null);
  186.             }
  187.         }
  188.         return $this;
  189.     }
  190.     /**
  191.      * @return Collection<int, TerEmpresaCliente>
  192.      */
  193.     public function getTerEmpresaClientes(): Collection
  194.     {
  195.         return $this->terEmpresaClientes;
  196.     }
  197.     public function addTerEmpresaCliente(TerEmpresaCliente $terEmpresaCliente): static
  198.     {
  199.         if (!$this->terEmpresaClientes->contains($terEmpresaCliente)) {
  200.             $this->terEmpresaClientes->add($terEmpresaCliente);
  201.             $terEmpresaCliente->setAsociado($this);
  202.         }
  203.         return $this;
  204.     }
  205.     public function removeTerEmpresaCliente(TerEmpresaCliente $terEmpresaCliente): static
  206.     {
  207.         if ($this->terEmpresaClientes->removeElement($terEmpresaCliente)) {
  208.             // set the owning side to null (unless already changed)
  209.             if ($terEmpresaCliente->getAsociado() === $this) {
  210.                 $terEmpresaCliente->setAsociado(null);
  211.             }
  212.         }
  213.         return $this;
  214.     }
  215. }