src/Entity/ComGestionContactoComercial.php line 12

Open in your IDE?
  1. <?php
  2. namespace App\Entity;
  3. use App\Repository\ComGestionContactoComercialRepository;
  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(repositoryClassComGestionContactoComercialRepository::class)]
  9. class ComGestionContactoComercial
  10. {
  11.     #[ORM\Id]
  12.     #[ORM\GeneratedValue]
  13.     #[ORM\Column]
  14.     private ?int $id null;
  15.     #[ORM\Column(typeTypes::DATETIME_MUTABLE)]
  16.     private ?\DateTimeInterface $fechaGestion null;
  17.     #[ORM\ManyToMany(targetEntityComInformacionContacto::class)]
  18.     private Collection $contactoCliente;
  19.     #[ORM\Column]
  20.     private array $detalleGestion = [];
  21.     #[ORM\Column(length255nullabletrue)]
  22.     private ?string $comentarioGestion null;
  23.     #[ORM\Column(length255)]
  24.     private ?string $resultadoContacto null;
  25.     #[ORM\Column(typeTypes::DATETIME_MUTABLEnullabletrue)]
  26.     private ?\DateTimeInterface $fechaSeguimiento null;
  27.     #[ORM\Column(length255nullabletrue)]
  28.     private ?string $detalleSeguimiento null;
  29.     #[ORM\ManyToMany(targetEntityTerEmpresa::class)]
  30.     private Collection $serviciosInteres;
  31.     #[ORM\OneToMany(mappedBy'documentosClienteGestionComercial'targetEntityComDocumentosCliente::class)]
  32.     private Collection $documentosClienteGestionComercial;
  33.     #[ORM\OneToMany(mappedBy'gestionContactoComercial'targetEntityComHistoricoGestionContactoComercial::class)]
  34.     private Collection $historicoGestionComercial;
  35.     #[ORM\Column(typeTypes::DATETIME_MUTABLEnullabletrue)]
  36.     private ?\DateTimeInterface $createAt null;
  37.     #[ORM\Column(typeTypes::DATETIME_MUTABLEnullabletrue)]
  38.     private ?\DateTimeInterface $updateAt null;
  39.     #[ORM\Column(length255nullabletrue)]
  40.     private ?string $createUser null;
  41.     #[ORM\Column(length255nullabletrue)]
  42.     private ?string $updateUser null;
  43.     #[ORM\ManyToOne(inversedBy'comGestionContactoComercials')]
  44.     private ?TerEmpresaCliente $comProspectoGestionContacto null;
  45.     public function __construct()
  46.     {
  47.         $this->documentosClienteGestionComercial = new ArrayCollection();
  48.         $this->serviciosInteres = new ArrayCollection(); // ¡importante!
  49.         $this->contactoCliente = new ArrayCollection();
  50.         $this->historicoGestionComercial = new ArrayCollection();
  51.     }
  52.     public function getId(): ?int
  53.     {
  54.         return $this->id;
  55.     }
  56.     public function getFechaGestion(): ?\DateTimeInterface
  57.     {
  58.         return $this->fechaGestion;
  59.     }
  60.     public function setFechaGestion(\DateTimeInterface $fechaGestion): static
  61.     {
  62.         $this->fechaGestion $fechaGestion;
  63.         return $this;
  64.     }
  65.     public function getContactoCliente(): Collection
  66.     {
  67.         return $this->contactoCliente;
  68.     }
  69.     public function addContactoCliente(ComInformacionContacto $contacto): static
  70.     {
  71.         if (!$this->contactoCliente->contains($contacto)) {
  72.             $this->contactoCliente->add($contacto);
  73.         }
  74.         return $this;
  75.     }
  76.     public function removeContactoCliente(ComInformacionContacto $contacto): static
  77.     {
  78.         $this->contactoCliente->removeElement($contacto);
  79.         return $this;
  80.     }
  81.     public function getDetalleGestion(): array
  82.     {
  83.         return $this->detalleGestion;
  84.     }
  85.     public function setDetalleGestion(array $detalleGestion): static
  86.     {
  87.         $this->detalleGestion $detalleGestion;
  88.         return $this;
  89.     }
  90.     public function getComentarioGestion(): ?string
  91.     {
  92.         return $this->comentarioGestion;
  93.     }
  94.     public function setComentarioGestion(?string $comentarioGestion): static
  95.     {
  96.         $this->comentarioGestion $comentarioGestion;
  97.         return $this;
  98.     }
  99.     public function getResultadoContacto(): ?string
  100.     {
  101.         return $this->resultadoContacto;
  102.     }
  103.     public function setResultadoContacto(string $resultadoContacto): static
  104.     {
  105.         $this->resultadoContacto $resultadoContacto;
  106.         return $this;
  107.     }
  108.     public function getFechaSeguimiento(): ?\DateTimeInterface
  109.     {
  110.         return $this->fechaSeguimiento;
  111.     }
  112.     public function setFechaSeguimiento(?\DateTimeInterface $fechaSeguimiento): static
  113.     {
  114.         $this->fechaSeguimiento $fechaSeguimiento;
  115.         return $this;
  116.     }
  117.     public function getDetalleSeguimiento(): ?string
  118.     {
  119.         return $this->detalleSeguimiento;
  120.     }
  121.     public function setDetalleSeguimiento(?string $detalleSeguimiento): static
  122.     {
  123.         $this->detalleSeguimiento $detalleSeguimiento;
  124.         return $this;
  125.     }
  126.     public function getServiciosInteres(): Collection
  127.     {
  128.         return $this->serviciosInteres;
  129.     }
  130.     public function addServiciosInteres(TerEmpresa $empresa): static
  131.     {
  132.         if (!$this->serviciosInteres->contains($empresa)) {
  133.             $this->serviciosInteres->add($empresa);
  134.         }
  135.         return $this;
  136.     }
  137.     public function removeServiciosInteres(TerEmpresa $empresa): static
  138.     {
  139.         $this->serviciosInteres->removeElement($empresa);
  140.         return $this;
  141.     }
  142.     /**
  143.      * @return Collection<int, ComDocumentosCliente>
  144.      */
  145.     public function getDocumentosClienteGestionComercial(): Collection
  146.     {
  147.         return $this->documentosClienteGestionComercial;
  148.     }
  149.     public function addDocumentosClienteGestionComercial(ComDocumentosCliente $documentosClienteGestionComercial): static
  150.     {
  151.         if (!$this->documentosClienteGestionComercial->contains($documentosClienteGestionComercial)) {
  152.             $this->documentosClienteGestionComercial->add($documentosClienteGestionComercial);
  153.             $documentosClienteGestionComercial->setDocumentosClienteGestionComercial($this);
  154.         }
  155.         return $this;
  156.     }
  157.     public function removeDocumentosClienteGestionComercial(ComDocumentosCliente $documentosClienteGestionComercial): static
  158.     {
  159.         if ($this->documentosClienteGestionComercial->removeElement($documentosClienteGestionComercial)) {
  160.             // set the owning side to null (unless already changed)
  161.             if ($documentosClienteGestionComercial->getDocumentosClienteGestionComercial() === $this) {
  162.                 $documentosClienteGestionComercial->setDocumentosClienteGestionComercial(null);
  163.             }
  164.         }
  165.         return $this;
  166.     }
  167.     /**
  168.      * @return Collection<int, ComHistoricoGestionContactoComercial>
  169.      */
  170.     public function getHistoricoGestionComercial(): Collection
  171.     {
  172.         return $this->historicoGestionComercial;
  173.     }
  174.     public function addHistoricoGestionComercial(ComHistoricoGestionContactoComercial $historicoGestionComercial): static
  175.     {
  176.         if (!$this->historicoGestionComercial->contains($historicoGestionComercial)) {
  177.             $this->historicoGestionComercial->add($historicoGestionComercial);
  178.             $historicoGestionComercial->setGestionContactoComercial($this);
  179.         }
  180.         return $this;
  181.     }
  182.     public function removeHistoricoGestionComercial(ComHistoricoGestionContactoComercial $historicoGestionComercial): static
  183.     {
  184.         if ($this->historicoGestionComercial->removeElement($historicoGestionComercial)) {
  185.             // set the owning side to null (unless already changed)
  186.             if ($historicoGestionComercial->getGestionContactoComercial() === $this) {
  187.                 $historicoGestionComercial->setGestionContactoComercial(null);
  188.             }
  189.         }
  190.         return $this;
  191.     }
  192.     public function getCreateAt(): ?\DateTimeInterface
  193.     {
  194.         return $this->createAt;
  195.     }
  196.     public function setCreateAt(?\DateTimeInterface $createAt): static
  197.     {
  198.         $this->createAt $createAt;
  199.         return $this;
  200.     }
  201.     public function getUpdateAt(): ?\DateTimeInterface
  202.     {
  203.         return $this->updateAt;
  204.     }
  205.     public function setUpdateAt(?\DateTimeInterface $updateAt): static
  206.     {
  207.         $this->updateAt $updateAt;
  208.         return $this;
  209.     }
  210.     public function getCreateUser(): ?string
  211.     {
  212.         return $this->createUser;
  213.     }
  214.     public function setCreateUser(?string $createUser): static
  215.     {
  216.         $this->createUser $createUser;
  217.         return $this;
  218.     }
  219.     public function getUpdateUser(): ?string
  220.     {
  221.         return $this->updateUser;
  222.     }
  223.     public function setUpdateUser(?string $updateUser): static
  224.     {
  225.         $this->updateUser $updateUser;
  226.         return $this;
  227.     }
  228.     public function getComProspectoGestionContacto(): ?TerEmpresaCliente
  229.     {
  230.         return $this->comProspectoGestionContacto;
  231.     }
  232.     public function setComProspectoGestionContacto(?TerEmpresaCliente $comProspectoGestionContacto): static
  233.     {
  234.         $this->comProspectoGestionContacto $comProspectoGestionContacto;
  235.         return $this;
  236.     }
  237. }