src/Entity/ComGestionCompromisos.php line 12

Open in your IDE?
  1. <?php
  2. namespace App\Entity;
  3. use App\Repository\ComGestionCompromisosRepository;
  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(repositoryClassComGestionCompromisosRepository::class)]
  9. class ComGestionCompromisos
  10. {
  11.     #[ORM\Id]
  12.     #[ORM\GeneratedValue]
  13.     #[ORM\Column]
  14.     private ?int $id null;
  15.     #[ORM\Column(typeTypes::DATETIME_MUTABLE)]
  16.     private ?\DateTimeInterface $createAt null;
  17.     #[ORM\Column(length255)]
  18.     private ?string $createUser null;
  19.     #[ORM\Column(typeTypes::DATETIME_MUTABLE)]
  20.     private ?\DateTimeInterface $updateAt null;
  21.     #[ORM\Column(length255)]
  22.     private ?string $updateUser null;
  23.     #[ORM\Column(typeTypes::TEXTnullabletrue)]
  24.     private ?string $gestion null;
  25.     #[ORM\Column(typeTypes::DATETIME_MUTABLEnullabletrue)]
  26.     private ?\DateTimeInterface $fechaGestion null;
  27.     #[ORM\ManyToOne(inversedBy'comGestionCompromisos')]
  28.     private ?ParEstado $estadoCompromiso null;
  29.     #[ORM\Column(typeTypes::TEXTnullabletrue)]
  30.     private ?string $motivoRechazo null;
  31.     #[ORM\ManyToOne(inversedBy'comGestionCompromisos')]
  32.     private ?TerEmpresaCliente $cliente null;
  33.     #[ORM\Column(typeTypes::TEXTnullabletrue)]
  34.     private ?string $compromisos null;
  35.     #[ORM\ManyToOne(inversedBy'comGestionCompromisos')]
  36.     private ?TerPersona $ejectivoComercial null;
  37.     #[ORM\ManyToOne(inversedBy'comGestionCompromisos')]
  38.     private ?TerPersona $responsable null;
  39.     #[ORM\Column(length100nullabletrue)]
  40.     private ?string $responsableText null;
  41.     #[ORM\Column(typeTypes::DATETIME_MUTABLEnullabletrue)]
  42.     private ?\DateTimeInterface $fechaPlaneada null;
  43.     #[ORM\OneToMany(mappedBy'comGestionCompromisos'targetEntityComVisitaComercialCompromisos::class)]
  44.     private Collection $compromisosVisita;
  45.     public function __construct()
  46.     {
  47.         $this->compromisosVisita = new ArrayCollection();
  48.     }
  49.     public function getId(): ?int
  50.     {
  51.         return $this->id;
  52.     }
  53.     public function getCreateAt(): ?\DateTimeInterface
  54.     {
  55.         return $this->createAt;
  56.     }
  57.     public function setCreateAt(\DateTimeInterface $createAt): static
  58.     {
  59.         $this->createAt $createAt;
  60.         return $this;
  61.     }
  62.     public function getCreateUser(): ?string
  63.     {
  64.         return $this->createUser;
  65.     }
  66.     public function setCreateUser(string $createUser): static
  67.     {
  68.         $this->createUser $createUser;
  69.         return $this;
  70.     }
  71.     public function getUpdateAt(): ?\DateTimeInterface
  72.     {
  73.         return $this->updateAt;
  74.     }
  75.     public function setUpdateAt(\DateTimeInterface $updateAt): static
  76.     {
  77.         $this->updateAt $updateAt;
  78.         return $this;
  79.     }
  80.     public function getUpdateUser(): ?string
  81.     {
  82.         return $this->updateUser;
  83.     }
  84.     public function setUpdateUser(string $updateUser): static
  85.     {
  86.         $this->updateUser $updateUser;
  87.         return $this;
  88.     }
  89.     public function getGestion(): ?string
  90.     {
  91.         return $this->gestion;
  92.     }
  93.     public function setGestion(?string $gestion): static
  94.     {
  95.         $this->gestion $gestion;
  96.         return $this;
  97.     }
  98.     public function getFechaGestion(): ?\DateTimeInterface
  99.     {
  100.         return $this->fechaGestion;
  101.     }
  102.     public function setFechaGestion(?\DateTimeInterface $fechaGestion): static
  103.     {
  104.         $this->fechaGestion $fechaGestion;
  105.         return $this;
  106.     }
  107.     public function getEstadoCompromiso(): ?ParEstado
  108.     {
  109.         return $this->estadoCompromiso;
  110.     }
  111.     public function setEstadoCompromiso(?ParEstado $estadoCompromiso): static
  112.     {
  113.         $this->estadoCompromiso $estadoCompromiso;
  114.         return $this;
  115.     }
  116.     public function getMotivoRechazo(): ?string
  117.     {
  118.         return $this->motivoRechazo;
  119.     }
  120.     public function setMotivoRechazo(?string $motivoRechazo): static
  121.     {
  122.         $this->motivoRechazo $motivoRechazo;
  123.         return $this;
  124.     }
  125.     public function getCliente(): ?TerEmpresaCliente
  126.     {
  127.         return $this->cliente;
  128.     }
  129.     public function setCliente(?TerEmpresaCliente $cliente): static
  130.     {
  131.         $this->cliente $cliente;
  132.         return $this;
  133.     }
  134.     public function getCompromisos(): ?string
  135.     {
  136.         return $this->compromisos;
  137.     }
  138.     public function setCompromisos(?string $compromisos): static
  139.     {
  140.         $this->compromisos $compromisos;
  141.         return $this;
  142.     }
  143.     public function getEjectivoComercial(): ?TerPersona
  144.     {
  145.         return $this->ejectivoComercial;
  146.     }
  147.     public function setEjectivoComercial(?TerPersona $ejectivoComercial): static
  148.     {
  149.         $this->ejectivoComercial $ejectivoComercial;
  150.         return $this;
  151.     }
  152.     public function getResponsable(): ?TerPersona
  153.     {
  154.         return $this->responsable;
  155.     }
  156.     public function setResponsable(?TerPersona $responsable): static
  157.     {
  158.         $this->responsable $responsable;
  159.         return $this;
  160.     }
  161.     public function getResponsableText(): ?string
  162.     {
  163.         return $this->responsableText;
  164.     }
  165.     public function setResponsableText(?string $responsableText): static
  166.     {
  167.         $this->responsableText $responsableText;
  168.         return $this;
  169.     }
  170.     public function getFechaPlaneada(): ?\DateTimeInterface
  171.     {
  172.         return $this->fechaPlaneada;
  173.     }
  174.     public function setFechaPlaneada(?\DateTimeInterface $fechaPlaneada): static
  175.     {
  176.         $this->fechaPlaneada $fechaPlaneada;
  177.         return $this;
  178.     }
  179.     /**
  180.      * @return Collection<int, ComVisitaComercialCompromisos>
  181.      */
  182.     public function getCompromisosVisita(): Collection
  183.     {
  184.         return $this->compromisosVisita;
  185.     }
  186.     public function addCompromisosVisitum(ComVisitaComercialCompromisos $compromisosVisitum): static
  187.     {
  188.         if (!$this->compromisosVisita->contains($compromisosVisitum)) {
  189.             $this->compromisosVisita->add($compromisosVisitum);
  190.             $compromisosVisitum->setComGestionCompromisos($this);
  191.         }
  192.         return $this;
  193.     }
  194.     public function removeCompromisosVisitum(ComVisitaComercialCompromisos $compromisosVisitum): static
  195.     {
  196.         if ($this->compromisosVisita->removeElement($compromisosVisitum)) {
  197.             // set the owning side to null (unless already changed)
  198.             if ($compromisosVisitum->getComGestionCompromisos() === $this) {
  199.                 $compromisosVisitum->setComGestionCompromisos(null);
  200.             }
  201.         }
  202.         return $this;
  203.     }
  204. }