<?phpnamespace App\Entity;use App\Repository\ComGestionCompromisosRepository;use Doctrine\Common\Collections\ArrayCollection;use Doctrine\Common\Collections\Collection;use Doctrine\DBAL\Types\Types;use Doctrine\ORM\Mapping as ORM;#[ORM\Entity(repositoryClass: ComGestionCompromisosRepository::class)]class ComGestionCompromisos{ #[ORM\Id] #[ORM\GeneratedValue] #[ORM\Column] private ?int $id = null; #[ORM\Column(type: Types::DATETIME_MUTABLE)] private ?\DateTimeInterface $createAt = null; #[ORM\Column(length: 255)] private ?string $createUser = null; #[ORM\Column(type: Types::DATETIME_MUTABLE)] private ?\DateTimeInterface $updateAt = null; #[ORM\Column(length: 255)] private ?string $updateUser = null; #[ORM\Column(type: Types::TEXT, nullable: true)] private ?string $gestion = null; #[ORM\Column(type: Types::DATETIME_MUTABLE, nullable: true)] private ?\DateTimeInterface $fechaGestion = null; #[ORM\ManyToOne(inversedBy: 'comGestionCompromisos')] private ?ParEstado $estadoCompromiso = null; #[ORM\Column(type: Types::TEXT, nullable: true)] private ?string $motivoRechazo = null; #[ORM\ManyToOne(inversedBy: 'comGestionCompromisos')] private ?TerEmpresaCliente $cliente = null; #[ORM\Column(type: Types::TEXT, nullable: true)] private ?string $compromisos = null; #[ORM\ManyToOne(inversedBy: 'comGestionCompromisos')] private ?TerPersona $ejectivoComercial = null; #[ORM\ManyToOne(inversedBy: 'comGestionCompromisos')] private ?TerPersona $responsable = null; #[ORM\Column(length: 100, nullable: true)] private ?string $responsableText = null; #[ORM\Column(type: Types::DATETIME_MUTABLE, nullable: true)] private ?\DateTimeInterface $fechaPlaneada = null; #[ORM\OneToMany(mappedBy: 'comGestionCompromisos', targetEntity: ComVisitaComercialCompromisos::class)] private Collection $compromisosVisita; public function __construct() { $this->compromisosVisita = new ArrayCollection(); } public function getId(): ?int { return $this->id; } public function getCreateAt(): ?\DateTimeInterface { return $this->createAt; } public function setCreateAt(\DateTimeInterface $createAt): static { $this->createAt = $createAt; return $this; } public function getCreateUser(): ?string { return $this->createUser; } public function setCreateUser(string $createUser): static { $this->createUser = $createUser; return $this; } public function getUpdateAt(): ?\DateTimeInterface { return $this->updateAt; } public function setUpdateAt(\DateTimeInterface $updateAt): static { $this->updateAt = $updateAt; return $this; } public function getUpdateUser(): ?string { return $this->updateUser; } public function setUpdateUser(string $updateUser): static { $this->updateUser = $updateUser; return $this; } public function getGestion(): ?string { return $this->gestion; } public function setGestion(?string $gestion): static { $this->gestion = $gestion; return $this; } public function getFechaGestion(): ?\DateTimeInterface { return $this->fechaGestion; } public function setFechaGestion(?\DateTimeInterface $fechaGestion): static { $this->fechaGestion = $fechaGestion; return $this; } public function getEstadoCompromiso(): ?ParEstado { return $this->estadoCompromiso; } public function setEstadoCompromiso(?ParEstado $estadoCompromiso): static { $this->estadoCompromiso = $estadoCompromiso; return $this; } public function getMotivoRechazo(): ?string { return $this->motivoRechazo; } public function setMotivoRechazo(?string $motivoRechazo): static { $this->motivoRechazo = $motivoRechazo; return $this; } public function getCliente(): ?TerEmpresaCliente { return $this->cliente; } public function setCliente(?TerEmpresaCliente $cliente): static { $this->cliente = $cliente; return $this; } public function getCompromisos(): ?string { return $this->compromisos; } public function setCompromisos(?string $compromisos): static { $this->compromisos = $compromisos; return $this; } public function getEjectivoComercial(): ?TerPersona { return $this->ejectivoComercial; } public function setEjectivoComercial(?TerPersona $ejectivoComercial): static { $this->ejectivoComercial = $ejectivoComercial; return $this; } public function getResponsable(): ?TerPersona { return $this->responsable; } public function setResponsable(?TerPersona $responsable): static { $this->responsable = $responsable; return $this; } public function getResponsableText(): ?string { return $this->responsableText; } public function setResponsableText(?string $responsableText): static { $this->responsableText = $responsableText; return $this; } public function getFechaPlaneada(): ?\DateTimeInterface { return $this->fechaPlaneada; } public function setFechaPlaneada(?\DateTimeInterface $fechaPlaneada): static { $this->fechaPlaneada = $fechaPlaneada; return $this; } /** * @return Collection<int, ComVisitaComercialCompromisos> */ public function getCompromisosVisita(): Collection { return $this->compromisosVisita; } public function addCompromisosVisitum(ComVisitaComercialCompromisos $compromisosVisitum): static { if (!$this->compromisosVisita->contains($compromisosVisitum)) { $this->compromisosVisita->add($compromisosVisitum); $compromisosVisitum->setComGestionCompromisos($this); } return $this; } public function removeCompromisosVisitum(ComVisitaComercialCompromisos $compromisosVisitum): static { if ($this->compromisosVisita->removeElement($compromisosVisitum)) { // set the owning side to null (unless already changed) if ($compromisosVisitum->getComGestionCompromisos() === $this) { $compromisosVisitum->setComGestionCompromisos(null); } } return $this; }}