<?phpnamespace App\Entity;use App\Repository\GHRetiroCesantiasRepository;use Doctrine\Common\Collections\ArrayCollection;use Doctrine\Common\Collections\Collection;use Doctrine\DBAL\Types\Types;use Doctrine\ORM\Mapping as ORM;use phpDocumentor\Reflection\Types\Static_;#[ORM\Table(name: 'gh_retiro_cesantias')]#[ORM\Entity(repositoryClass: GHRetiroCesantiasRepository::class)]class GHRetiroCesantias { #[ORM\Id] #[ORM\GeneratedValue] #[ORM\Column] private ?int $id = null; #[ORM\Column(length: 255, nullable: true)] private ?string $soporte = null; #[ORM\Column(length: 255, nullable: true)] private ?string $firma = null; #[ORM\ManyToOne(inversedBy: 'retiroCesantias')] private ?ParBanco $banco = null; #[ORM\ManyToOne(inversedBy: 'retiroCesantias')] private ?ParInversion $inversion = null; #[ORM\Column(length: 100)] private ?string $tipoCuenta = null; #[ORM\Column(type: Types::DATETIME_MUTABLE)] private ?\DateTimeInterface $createAt = null; #[ORM\Column(length: 100)] private ?string $createUser = null; #[ORM\Column(type: Types::DATETIME_MUTABLE)] private ?\DateTimeInterface $updateAt = null; #[ORM\Column(length: 100)] private ?string $updateUser = null; #[ORM\ManyToOne(inversedBy: 'retiroCesantias')] private ?ParEstado $estado = null; #[ORM\ManyToOne(inversedBy: 'retiroCesantias')] private ?TerPersona $persona = null; #[ORM\ManyToOne(inversedBy: 'retiroCesantias')] private ?ParFondoCesantias $fondoCesantias = null; #[ORM\OneToMany(mappedBy: 'retiroCesantias', targetEntity: GHRetiroCesantiasSoporte::class)] private Collection $retiroCesantiasSoporte; #[ORM\OneToMany(mappedBy: 'retiroCesantiasAprobado', targetEntity: GHRetiroCesantiasSoporte::class)] private Collection $retiroCesantiasSoporteAprobado; #[ORM\Column(type: Types::TEXT, nullable: true)] private ?string $observaciones = null; #[ORM\Column(type: Types::STRING, nullable: true)] private ?string $numeroCuenta = null; #[ORM\Column(type: Types::DATETIME_MUTABLE, nullable: true)] private ?\DateTimeInterface $fechaSolicitud = null; #[ORM\Column(length: 255, nullable: true)] private ?string $valorSolicitado = null; public function __construct() { $this->retiroCesantiasSoporte = new ArrayCollection(); $this->retiroCesantiasSoporteAprobado = new ArrayCollection(); } public function getId(): ?int { return $this->id; } public function getSoporte(): ?string { return $this->soporte; } public function setSoporte(string $soporte): static { $this->soporte = $soporte; return $this; } public function getFirma(): ?string { return $this->firma; } public function setFirma(?string $firma): void { $this->firma = $firma; } public function getBanco(): ?ParBanco { return $this->banco; } public function setBanco(?ParBanco $banco): static { $this->banco = $banco; return $this; } public function getInversion(): ?ParInversion { return $this->inversion; } public function setInversion(?ParInversion $inversion): static { $this->inversion = $inversion; return $this; } public function getTipoCuenta(): ?string { return $this->tipoCuenta; } public function setTipoCuenta(string $tipoCuenta): static { $this->tipoCuenta = $tipoCuenta; return $this; } 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 getEstado(): ?ParEstado { return $this->estado; } public function setEstado(?ParEstado $estado): static { $this->estado = $estado; return $this; } public function getPersona(): ?TerPersona { return $this->persona; } public function setPersona(?TerPersona $persona): static { $this->persona = $persona; return $this; } public function getFondoCesantias(): ?ParFondoCesantias { return $this->fondoCesantias; } public function setFondoCesantias(?ParFondoCesantias $fondoCesantias): static { $this->fondoCesantias = $fondoCesantias; return $this; } /** * @return Collection<int, GHRetiroCesantiasSoporte> */ public function getRetiroCesantiasSoporte(): Collection { return $this->retiroCesantiasSoporte; } public function addRetiroCesantiasSoporte(GHRetiroCesantiasSoporte $retiroCesantiasSoporte): static { if (!$this->retiroCesantiasSoporte->contains($retiroCesantiasSoporte)) { $this->retiroCesantiasSoporte->add($retiroCesantiasSoporte); $retiroCesantiasSoporte->setRetiroCesantias($this); } return $this; } public function removeRetiroCesantiasSoporte(GHRetiroCesantiasSoporte $retiroCesantiasSoporte): static { if ($this->retiroCesantiasSoporte->removeElement($retiroCesantiasSoporte)) { // set the owning side to null (unless already changed) if ($retiroCesantiasSoporte->getRetiroCesantias() === $this) { $retiroCesantiasSoporte->setRetiroCesantias(null); } } return $this; } /** * @return Collection */ public function getRetiroCesantiasSoporteAprobado(): Collection { return $this->retiroCesantiasSoporteAprobado; } public function addRetiroCesantiasSoporteAprobado(GHRetiroCesantiasSoporte $retiroCesantiasSoporteAprobado): Static { if (!$this->retiroCesantiasSoporteAprobado->contains($retiroCesantiasSoporteAprobado)) { $this->retiroCesantiasSoporteAprobado->add($retiroCesantiasSoporteAprobado); $retiroCesantiasSoporteAprobado->setRetiroCesantias($this); } return $this; } public function removeRetiroCesantiasSoporteAprobado(GHRetiroCesantiasSoporte $retiroCesantiasSoporteAprobado): static { if ($this->retiroCesantiasSoporteAprobado->removeElement($retiroCesantiasSoporteAprobado)) { // set the owning side to null (unless already changed) if ($retiroCesantiasSoporteAprobado->getRetiroCesantiasAprobado() === $this) { $retiroCesantiasSoporteAprobado->setRetiroCesantiasAprobado(null); } } return $this; } public function getObservaciones(): ?string { return $this->observaciones; } public function setObservaciones(?string $observaciones): static { $this->observaciones = $observaciones; return $this; } public function getNumeroCuenta(): ?string { return $this->numeroCuenta; } public function setNumeroCuenta(?string $numeroCuenta): static { $this->numeroCuenta = $numeroCuenta; return $this; } public function getFechaSolicitud(): ?\DateTimeInterface { return $this->fechaSolicitud; } public function setFechaSolicitud(?\DateTimeInterface $fechaSolicitud): static { $this->fechaSolicitud = $fechaSolicitud; return $this; } public function getValorSolicitado(): ?string { return $this->valorSolicitado; } public function setValorSolicitado(?string $valorSolicitado): static { $this->valorSolicitado = $valorSolicitado; return $this; }}