src/Entity/ComProspecto.php line 11

Open in your IDE?
  1. <?php
  2. namespace App\Entity;
  3. use App\Repository\ComProspectoRepository;
  4. use Doctrine\Common\Collections\ArrayCollection;
  5. use Doctrine\Common\Collections\Collection;
  6. use Doctrine\ORM\Mapping as ORM;
  7. #[ORM\Entity(repositoryClassComProspectoRepository::class)]
  8. class ComProspecto
  9. {
  10.     #[ORM\Id]
  11.     #[ORM\GeneratedValue]
  12.     #[ORM\Column]
  13.     private ?int $id null;
  14.     #[ORM\ManyToOne(inversedBy'comTipoDocumentos')]
  15.     #[ORM\JoinColumn(nullablefalse)]
  16.     private ?ParTipoDocumento $tipoId null;
  17.     #[ORM\Column]
  18.     private ?int $IdNumero null;
  19.     #[ORM\Column(nullabletrue)]
  20.     private ?int $dv null;
  21.     #[ORM\Column(length255)]
  22.     private ?string $razonSocial null;
  23.     #[ORM\Column(length10)]
  24.     private ?string $pais null;
  25.     #[ORM\Column(length255)]
  26.     private ?string $ciudad null;
  27.     #[ORM\Column(length255)]
  28.     private ?string $direccion null;
  29.     #[ORM\ManyToOne(inversedBy'comTipoCliente')]
  30.     private ?ComTipoCliente $tipoCliente null;
  31.     #[ORM\ManyToOne(inversedBy'comTerAsociado')]
  32.     #[ORM\JoinColumn(nullabletrue)]
  33.     private ?TerAsociado $asociado null;
  34.     #[ORM\ManyToOne(inversedBy'comTipoAsociado')]
  35.     #[ORM\JoinColumn(nullabletrue)]
  36.     private ?ComTipoAsociado $tipoAsociado null;
  37.     #[ORM\Column(length255nullabletrue)]
  38.     private ?string $metodoConsecucion null;
  39.     #[ORM\Column(length255nullabletrue)]
  40.     private ?string $otroMetodoConsecucion null;
  41.     #[ORM\Column(length255nullabletrue)]
  42.     private ?string $referido null;
  43.     #[ORM\Column(length255nullabletrue)]
  44.     private ?string $ejecutivaComercialComisora null;
  45.     #[ORM\OneToMany(mappedBy'comProspectoInformacionLegis'targetEntityComInformacionLegis::class)]
  46.     private Collection $informacionLegis;
  47.     #[ORM\OneToMany(mappedBy'comProspectoInformacionContacto'targetEntityComInformacionContacto::class)]
  48.     private Collection $InformacionContacto;
  49.     #[ORM\Column]
  50.     private ?\DateTime $createAt null;
  51.     #[ORM\Column(length255)]
  52.     private ?string $createUser null;
  53.     #[ORM\Column]
  54.     private ?\DateTime $updateAt null;
  55.     #[ORM\Column(length255)]
  56.     private ?string $updateUser null;
  57.     #[ORM\OneToOne(mappedBy'comProspecto'cascade: ['persist''remove'])]
  58.     private ?ComDestinoNotificacionBienvenida $comDestinoNotificacionBienvenida null;
  59.     #[ORM\ManyToMany(targetEntityTerEmpresa::class, inversedBy'comProspectosTerEmpresa')]
  60.     private Collection $serviciosInteres;
  61.     #[ORM\OneToMany(mappedBy'comProspectoDocumentoCliente'targetEntityComDocumentosCliente::class)]
  62.     private Collection $comDocumentosCliente;
  63.     #[ORM\Column(nullabletrue)]
  64.     private ?bool $autorizar null;
  65.     #[ORM\Column(length255nullable:true)]
  66.     private ?string $comentarioAutorizacion null;
  67.     #[ORM\ManyToOne(inversedBy'comProspectoParEstado')]
  68.     private ?ParEstado $estado null;
  69.     #[ORM\OneToMany(mappedBy'comProspectoVisitaComercial'targetEntityComVisitaComercial::class)]
  70.     private Collection $visitaComercial;
  71.     #[ORM\OneToMany(mappedBy'comProspecto'targetEntityComVerificacionListaCautelar::class)]
  72.     private Collection $comVerificacionListaCautelar;
  73.     #[ORM\OneToMany(mappedBy'comProspecto'targetEntityComClientesTarifas::class)]
  74.     private Collection $comClientesTarifas;
  75.     public function __construct()
  76.     {
  77.         $this->informacionLegis = new ArrayCollection();
  78.         $this->InformacionContacto = new ArrayCollection();
  79.         $this->serviciosInteres = new ArrayCollection();
  80.         $this->comDocumentosCliente = new ArrayCollection();
  81.         $this->visitaComercial = new ArrayCollection();
  82.         $this->comVerificacionListaCautelar = new ArrayCollection();
  83.         $this->comClientesTarifas = new ArrayCollection();
  84.     }
  85.     public function getId(): ?int
  86.     {
  87.         return $this->id;
  88.     }
  89.     public function getTipoId(): ?ParTipoDocumento
  90.     {
  91.         return $this->tipoId;
  92.     }
  93.     public function setTipoId(?ParTipoDocumento $tipoId): static
  94.     {
  95.         $this->tipoId $tipoId;
  96.         return $this;
  97.     }
  98.     public function getIdNumero(): ?int
  99.     {
  100.         return $this->IdNumero;
  101.     }
  102.     public function setIdNumero(int $IdNumero): static
  103.     {
  104.         $this->IdNumero $IdNumero;
  105.         return $this;
  106.     }
  107.     public function getDv(): ?int
  108.     {
  109.         return $this->dv;
  110.     }
  111.     public function setDv(?int $dv): static
  112.     {
  113.         $this->dv $dv;
  114.         return $this;
  115.     }
  116.     public function getRazonSocial(): ?string
  117.     {
  118.         return $this->razonSocial;
  119.     }
  120.     public function setRazonSocial(string $razonSocial): static
  121.     {
  122.         $this->razonSocial $razonSocial;
  123.         return $this;
  124.     }
  125.     public function getPais(): ?string
  126.     {
  127.         return $this->pais;
  128.     }
  129.     public function setPais(?string $pais): static
  130.     {
  131.         $this->pais $pais;
  132.         return $this;
  133.     }
  134.     public function getCiudad(): ?string
  135.     {
  136.         return $this->ciudad;
  137.     }
  138.     public function setCiudad(string $ciudad): static
  139.     {
  140.         $this->ciudad $ciudad;
  141.         return $this;
  142.     }
  143.     public function getDireccion(): ?string
  144.     {
  145.         return $this->direccion;
  146.     }
  147.     public function setDireccion(string $direccion): static
  148.     {
  149.         $this->direccion $direccion;
  150.         return $this;
  151.     }
  152.     public function getTipoCliente(): ?ComTipoCliente
  153.     {
  154.         return $this->tipoCliente;
  155.     }
  156.     public function setTipoCliente(?ComTipoCliente $tipoCliente): static
  157.     {
  158.         $this->tipoCliente $tipoCliente;
  159.         return $this;
  160.     }
  161.     public function getAsociado(): ?TerAsociado
  162.     {
  163.         return $this->asociado;
  164.     }
  165.     public function setAsociado(?TerAsociado $asociado): static
  166.     {
  167.         $this->asociado $asociado;
  168.         return $this;
  169.     }
  170.     public function getTipoAsociado(): ?ComTipoAsociado
  171.     {
  172.         return $this->tipoAsociado;
  173.     }
  174.     public function setTipoAsociado(?ComTipoAsociado $tipoAsociado): static
  175.     {
  176.         $this->tipoAsociado $tipoAsociado;
  177.         return $this;
  178.     }
  179.     public function getMetodoConsecucion(): ?string
  180.     {
  181.         return $this->metodoConsecucion;
  182.     }
  183.     public function setMetodoConsecucion(?string $metodoConsecucion): static
  184.     {
  185.         $this->metodoConsecucion $metodoConsecucion;
  186.         return $this;
  187.     }
  188.     public function getOtroMetodoConsecucion(): ?string
  189.     {
  190.         return $this->otroMetodoConsecucion;
  191.     }
  192.     public function setOtroMetodoConsecucion(?string $otroMetodoConsecucion): static
  193.     {
  194.         $this->otroMetodoConsecucion $otroMetodoConsecucion;
  195.         return $this;
  196.     }
  197.     public function getReferido(): ?string
  198.     {
  199.         return $this->referido;
  200.     }
  201.     public function setReferido(?string $referido): static
  202.     {
  203.         $this->referido $referido;
  204.         return $this;
  205.     }
  206.     public function getEjecutivaComercialComisora(): ?string
  207.     {
  208.         return $this->ejecutivaComercialComisora;
  209.     }
  210.     public function setEjecutivaComercialComisora(?string $ejecutivaComercialComisora): static
  211.     {
  212.         $this->ejecutivaComercialComisora $ejecutivaComercialComisora;
  213.         return $this;
  214.     }
  215.     /**
  216.      * @return Collection<int, ComInformacionLegis>
  217.      */
  218.     public function getInformacionLegis(): Collection
  219.     {
  220.         return $this->informacionLegis;
  221.     }
  222.     public function addInformacionLegi(ComInformacionLegis $informacionLegi): static
  223.     {
  224.         if (!$this->informacionLegis->contains($informacionLegi)) {
  225.             $this->informacionLegis->add($informacionLegi);
  226.             $informacionLegi->setComProspectoInformacionLegis($this);
  227.         }
  228.         return $this;
  229.     }
  230.     public function removeInformacionLegi(ComInformacionLegis $informacionLegi): static
  231.     {
  232.         if ($this->informacionLegis->removeElement($informacionLegi)) {
  233.             // set the owning side to null (unless already changed)
  234.             if ($informacionLegi->getComProspectoInformacionLegis() === $this) {
  235.                 $informacionLegi->setComProspectoInformacionLegis(null);
  236.             }
  237.         }
  238.         return $this;
  239.     }
  240.     /**
  241.      * @return Collection<int, ComInformacionContacto>
  242.      */
  243.     public function getInformacionContacto(): Collection
  244.     {
  245.         return $this->InformacionContacto;
  246.     }
  247.     public function addInformacionContacto(ComInformacionContacto $informacionContacto): static
  248.     {
  249.         if (!$this->InformacionContacto->contains($informacionContacto)) {
  250.             $this->InformacionContacto->add($informacionContacto);
  251.             $informacionContacto->setComProspectoInformacionContacto($this);
  252.         }
  253.         return $this;
  254.     }
  255.     public function removeInformacionContacto(ComInformacionContacto $informacionContacto): static
  256.     {
  257.         if ($this->InformacionContacto->removeElement($informacionContacto)) {
  258.             // set the owning side to null (unless already changed)
  259.             if ($informacionContacto->getComProspectoInformacionContacto() === $this) {
  260.                 $informacionContacto->setComProspectoInformacionContacto(null);
  261.             }
  262.         }
  263.         return $this;
  264.     }
  265.     public function getCreateAt(): ?\DateTime
  266.     {
  267.         return $this->createAt;
  268.     }
  269.     public function setCreateAt(\DateTime $createAt): static
  270.     {
  271.         $this->createAt $createAt;
  272.         return $this;
  273.     }
  274.     public function getCreateUser(): ?string
  275.     {
  276.         return $this->createUser;
  277.     }
  278.     public function setCreateUser(string $createUser): static
  279.     {
  280.         $this->createUser $createUser;
  281.         return $this;
  282.     }
  283.     public function getUpdateAt(): ?\DateTime
  284.     {
  285.         return $this->updateAt;
  286.     }
  287.     public function setUpdateAt(\DateTime $updateAt): static
  288.     {
  289.         $this->updateAt $updateAt;
  290.         return $this;
  291.     }
  292.     public function getUpdateUser(): ?string
  293.     {
  294.         return $this->updateUser;
  295.     }
  296.     public function setUpdateUser(string $updateUser): static
  297.     {
  298.         $this->updateUser $updateUser;
  299.         return $this;
  300.     }
  301.     public function getComDestinoNotificacionBienvenida(): ?ComDestinoNotificacionBienvenida
  302.     {
  303.         return $this->comDestinoNotificacionBienvenida;
  304.     }
  305.     public function setComDestinoNotificacionBienvenida(?ComDestinoNotificacionBienvenida $comDestinoNotificacionBienvenida): static
  306.     {
  307.         // unset the owning side of the relation if necessary
  308.         if ($comDestinoNotificacionBienvenida === null && $this->comDestinoNotificacionBienvenida !== null) {
  309.             $this->comDestinoNotificacionBienvenida->setComProspecto(null);
  310.         }
  311.         // set the owning side of the relation if necessary
  312.         if ($comDestinoNotificacionBienvenida !== null && $comDestinoNotificacionBienvenida->getComProspecto() !== $this) {
  313.             $comDestinoNotificacionBienvenida->setComProspecto($this);
  314.         }
  315.         $this->comDestinoNotificacionBienvenida $comDestinoNotificacionBienvenida;
  316.         return $this;
  317.     }
  318.     /**
  319.      * @return Collection<int, TerEmpresa>
  320.      */
  321.     public function getServiciosInteres(): Collection
  322.     {
  323.         return $this->serviciosInteres;
  324.     }
  325.     public function addServiciosIntere(TerEmpresa $serviciosIntere): static
  326.     {
  327.         if (!$this->serviciosInteres->contains($serviciosIntere)) {
  328.             $this->serviciosInteres->add($serviciosIntere);
  329.         }
  330.         return $this;
  331.     }
  332.     public function removeServiciosIntere(TerEmpresa $serviciosIntere): static
  333.     {
  334.         $this->serviciosInteres->removeElement($serviciosIntere);
  335.         return $this;
  336.     }
  337.     /**
  338.      * @return Collection<int, ComDocumentosCliente>
  339.      */
  340.     public function getComDocumentosCliente(): Collection
  341.     {
  342.         return $this->comDocumentosCliente;
  343.     }
  344.     public function addComDocumentosCliente(ComDocumentosCliente $comDocumentosCliente): static
  345.     {
  346.         if (!$this->comDocumentosCliente->contains($comDocumentosCliente)) {
  347.             $this->comDocumentosCliente->add($comDocumentosCliente);
  348.             $comDocumentosCliente->setComProspectoDocumentoCliente($this);
  349.         }
  350.         return $this;
  351.     }
  352.     public function removeComDocumentosCliente(ComDocumentosCliente $comDocumentosCliente): static
  353.     {
  354.         if ($this->comDocumentosCliente->removeElement($comDocumentosCliente)) {
  355.             // set the owning side to null (unless already changed)
  356.             if ($comDocumentosCliente->getComProspectoDocumentoCliente() === $this) {
  357.                 $comDocumentosCliente->setComProspectoDocumentoCliente(null);
  358.             }
  359.         }
  360.         return $this;
  361.     }
  362.     public function isAutorizar(): ?bool
  363.     {
  364.         return $this->autorizar;
  365.     }
  366.     public function setAutorizar(?bool $autorizar): static
  367.     {
  368.         $this->autorizar $autorizar;
  369.         return $this;
  370.     }
  371.     public function getComentarioAutorizacion(): ?string
  372.     {
  373.         return $this->comentarioAutorizacion;
  374.     }
  375.     public function setComentarioAutorizacion(string $comentarioAutorizacion): static
  376.     {
  377.         $this->comentarioAutorizacion $comentarioAutorizacion;
  378.         return $this;
  379.     }
  380.     public function getEstado(): ?ParEstado
  381.     {
  382.         return $this->estado;
  383.     }
  384.     public function setEstado(?ParEstado $estado): static
  385.     {
  386.         $this->estado $estado;
  387.         return $this;
  388.     }
  389.     /**
  390.      * @return Collection<int, ComVisitaComercial>
  391.      */
  392.     public function getVisitaComercial(): Collection
  393.     {
  394.         return $this->visitaComercial;
  395.     }
  396.     public function addVisitaComercial(ComVisitaComercial $visitaComercial): static
  397.     {
  398.         if (!$this->visitaComercial->contains($visitaComercial)) {
  399.             $this->visitaComercial->add($visitaComercial);
  400.             $visitaComercial->setComProspectoVisitaComercial($this);
  401.         }
  402.         return $this;
  403.     }
  404.     public function removeVisitaComercial(ComVisitaComercial $visitaComercial): static
  405.     {
  406.         if ($this->visitaComercial->removeElement($visitaComercial)) {
  407.             // set the owning side to null (unless already changed)
  408.             if ($visitaComercial->getComProspectoVisitaComercial() === $this) {
  409.                 $visitaComercial->setComProspectoVisitaComercial(null);
  410.             }
  411.         }
  412.         return $this;
  413.     }
  414.     /**
  415.      * @return Collection<int, ComVerificacionListaCautelar>
  416.      */
  417.     public function getComVerificacionListaCautelar(): Collection
  418.     {
  419.         return $this->comVerificacionListaCautelar;
  420.     }
  421.     public function addComVerificacionListaCautelar(ComVerificacionListaCautelar $comVerificacionListaCautelar): static
  422.     {
  423.         if (!$this->comVerificacionListaCautelar->contains($comVerificacionListaCautelar)) {
  424.             $this->comVerificacionListaCautelar->add($comVerificacionListaCautelar);
  425.             $comVerificacionListaCautelar->setComProspecto($this);
  426.         }
  427.         return $this;
  428.     }
  429.     public function removeComVerificacionListaCautelar(ComVerificacionListaCautelar $comVerificacionListaCautelar): static
  430.     {
  431.         if ($this->comVerificacionListaCautelar->removeElement($comVerificacionListaCautelar)) {
  432.             // set the owning side to null (unless already changed)
  433.             if ($comVerificacionListaCautelar->getComProspecto() === $this) {
  434.                 $comVerificacionListaCautelar->setComProspecto(null);
  435.             }
  436.         }
  437.         return $this;
  438.     }
  439.     /**
  440.      * @return Collection<int, ComClientesTarifas>
  441.      */
  442.     public function getComClientesTarifas(): Collection
  443.     {
  444.         return $this->comClientesTarifas;
  445.     }
  446.     public function addComClientesTarifa(ComClientesTarifas $comClientesTarifa): static
  447.     {
  448.         if (!$this->comClientesTarifas->contains($comClientesTarifa)) {
  449.             $this->comClientesTarifas->add($comClientesTarifa);
  450.             $comClientesTarifa->setComProspecto($this);
  451.         }
  452.         return $this;
  453.     }
  454.     public function removeComClientesTarifa(ComClientesTarifas $comClientesTarifa): static
  455.     {
  456.         if ($this->comClientesTarifas->removeElement($comClientesTarifa)) {
  457.             // set the owning side to null (unless already changed)
  458.             if ($comClientesTarifa->getComProspecto() === $this) {
  459.                 $comClientesTarifa->setComProspecto(null);
  460.             }
  461.         }
  462.         return $this;
  463.     }
  464. }