src/Entity/ComVisitaComercial.php line 12

Open in your IDE?
  1. <?php
  2. namespace App\Entity;
  3. use App\Repository\ComVisitaComercialRepository;
  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(repositoryClassComVisitaComercialRepository::class)]
  9. class ComVisitaComercial
  10. {
  11.     #[ORM\Id]
  12.     #[ORM\GeneratedValue]
  13.     #[ORM\Column]
  14.     private ?int $id null;
  15.     #[ORM\Column(typeTypes::DATETIME_MUTABLE)]
  16.     private ?\DateTimeInterface $fechaVisita null;
  17.     #[ORM\Column(length255)]
  18.     private ?string $ejecutivoComercial null;
  19.     #[ORM\Column(length255nullabletrue)]
  20.     private ?string $vincularActaAnterior null;
  21.     #[ORM\Column(length255)]
  22.     private ?string $tipoVisita null;
  23.     #[ORM\Column(length255nullabletrue)]
  24.     private ?string $ubicacion null;
  25.     #[ORM\Column(length255)]
  26.     private ?string $temasTratados null;
  27.     #[ORM\ManyToOne(inversedBy'visitaComercial')]
  28.     private ?ComProspecto $comProspectoVisitaComercial null;
  29.     #[ORM\Column(length255)]
  30.     private ?string $motivo null;
  31.     #[ORM\Column(typeTypes::DATETIME_MUTABLE)]
  32.     private ?\DateTimeInterface $createAt null;
  33.     #[ORM\Column(length255)]
  34.     private ?string $createUser null;
  35.     #[ORM\Column(typeTypes::DATETIME_MUTABLE)]
  36.     private ?\DateTimeInterface $updateAt null;
  37.     #[ORM\Column(length255)]
  38.     private ?string $updateUser null;
  39.     #[ORM\OneToMany(mappedBy'comVisitaComercial'targetEntityComVisitaComercialAsistentes::class)]
  40.     private Collection $asistentes;
  41.     #[ORM\OneToMany(mappedBy'comVisitaComercial'targetEntityComVisitaComercialCompromisos::class)]
  42.     private Collection $compromisos;
  43.     #[ORM\ManyToOne(inversedBy'visitaComercial')]
  44.     private ?TerEmpresaCliente $terEmpresaCliente null;
  45.     public function __construct()
  46.     {
  47.         $this->asistentes = new ArrayCollection();
  48.         $this->compromisos = new ArrayCollection();
  49.     }
  50.     public function getId(): ?int
  51.     {
  52.         return $this->id;
  53.     }
  54.     public function getFechaVisita(): ?\DateTimeInterface
  55.     {
  56.         return $this->fechaVisita;
  57.     }
  58.     public function setFechaVisita(\DateTimeInterface $fechaVisita): static
  59.     {
  60.         $this->fechaVisita $fechaVisita;
  61.         return $this;
  62.     }
  63.     public function getEjecutivoComercial(): ?string
  64.     {
  65.         return $this->ejecutivoComercial;
  66.     }
  67.     public function setEjecutivoComercial(string $ejecutivoComercial): static
  68.     {
  69.         $this->ejecutivoComercial $ejecutivoComercial;
  70.         return $this;
  71.     }
  72.     public function getVincularActaAnterior(): ?string
  73.     {
  74.         return $this->vincularActaAnterior;
  75.     }
  76.     public function setVincularActaAnterior(?string $vincularActaAnterior): static
  77.     {
  78.         $this->vincularActaAnterior $vincularActaAnterior;
  79.         return $this;
  80.     }
  81.     public function getTipoVisita(): ?string
  82.     {
  83.         return $this->tipoVisita;
  84.     }
  85.     public function setTipoVisita(string $tipoVisita): static
  86.     {
  87.         $this->tipoVisita $tipoVisita;
  88.         return $this;
  89.     }
  90.     public function getUbicacion(): ?string
  91.     {
  92.         return $this->ubicacion;
  93.     }
  94.     public function setUbicacion(?string $ubicacion): static
  95.     {
  96.         $this->ubicacion $ubicacion;
  97.         return $this;
  98.     }
  99.     public function getTemasTratados(): ?string
  100.     {
  101.         return $this->temasTratados;
  102.     }
  103.     public function setTemasTratados(string $temasTratados): static
  104.     {
  105.         $this->temasTratados $temasTratados;
  106.         return $this;
  107.     }
  108.     public function getComProspectoVisitaComercial(): ?ComProspecto
  109.     {
  110.         return $this->comProspectoVisitaComercial;
  111.     }
  112.     public function setComProspectoVisitaComercial(?ComProspecto $comProspectoVisitaComercial): static
  113.     {
  114.         $this->comProspectoVisitaComercial $comProspectoVisitaComercial;
  115.         return $this;
  116.     }
  117.     public function getMotivo(): ?string
  118.     {
  119.         return $this->motivo;
  120.     }
  121.     public function setMotivo(string $motivo): static
  122.     {
  123.         $this->motivo $motivo;
  124.         return $this;
  125.     }
  126.     public function getCreateAt(): ?\DateTimeInterface
  127.     {
  128.         return $this->createAt;
  129.     }
  130.     public function setCreateAt(\DateTimeInterface $createAt): static
  131.     {
  132.         $this->createAt $createAt;
  133.         return $this;
  134.     }
  135.     public function getCreateUser(): ?string
  136.     {
  137.         return $this->createUser;
  138.     }
  139.     public function setCreateUser(string $createUser): static
  140.     {
  141.         $this->createUser $createUser;
  142.         return $this;
  143.     }
  144.     public function getUpdateAt(): ?\DateTimeInterface
  145.     {
  146.         return $this->updateAt;
  147.     }
  148.     public function setUpdateAt(\DateTimeInterface $updateAt): static
  149.     {
  150.         $this->updateAt $updateAt;
  151.         return $this;
  152.     }
  153.     public function getUpdateUser(): ?string
  154.     {
  155.         return $this->updateUser;
  156.     }
  157.     public function setUpdateUser(string $updateUser): static
  158.     {
  159.         $this->updateUser $updateUser;
  160.         return $this;
  161.     }
  162.     /**
  163.      * @return Collection<int, ComVisitaComercialAsistentes>
  164.      */
  165.     public function getAsistentes(): Collection
  166.     {
  167.         return $this->asistentes;
  168.     }
  169.     public function addAsistente(ComVisitaComercialAsistentes $asistente): static
  170.     {
  171.         if (!$this->asistentes->contains($asistente)) {
  172.             $this->asistentes->add($asistente);
  173.             $asistente->setComVisitaComercial($this);
  174.         }
  175.         return $this;
  176.     }
  177.     public function removeAsistente(ComVisitaComercialAsistentes $asistente): static
  178.     {
  179.         if ($this->asistentes->removeElement($asistente)) {
  180.             // set the owning side to null (unless already changed)
  181.             if ($asistente->getComVisitaComercial() === $this) {
  182.                 $asistente->setComVisitaComercial(null);
  183.             }
  184.         }
  185.         return $this;
  186.     }
  187.     /**
  188.      * @return Collection<int, ComVisitaComercialCompromisos>
  189.      */
  190.     public function getCompromisos(): Collection
  191.     {
  192.         return $this->compromisos;
  193.     }
  194.     public function addCompromiso(ComVisitaComercialCompromisos $compromiso): static
  195.     {
  196.         if (!$this->compromisos->contains($compromiso)) {
  197.             $this->compromisos->add($compromiso);
  198.             $compromiso->setComVisitaComercial($this);
  199.         }
  200.         return $this;
  201.     }
  202.     public function removeCompromiso(ComVisitaComercialCompromisos $compromiso): static
  203.     {
  204.         if ($this->compromisos->removeElement($compromiso)) {
  205.             // set the owning side to null (unless already changed)
  206.             if ($compromiso->getComVisitaComercial() === $this) {
  207.                 $compromiso->setComVisitaComercial(null);
  208.             }
  209.         }
  210.         return $this;
  211.     }
  212.     public function getTerEmpresaCliente(): ?TerEmpresaCliente
  213.     {
  214.         return $this->terEmpresaCliente;
  215.     }
  216.     public function setTerEmpresaCliente(?TerEmpresaCliente $terEmpresaCliente): static
  217.     {
  218.         $this->terEmpresaCliente $terEmpresaCliente;
  219.         return $this;
  220.     }
  221. }