<?php
namespace App\Entity;
use App\Repository\RFTablaRetencionRepository;
use Doctrine\Common\Collections\ArrayCollection;
use Doctrine\Common\Collections\Collection;
use Doctrine\DBAL\Types\Types;
use Doctrine\ORM\Mapping as ORM;
#[ORM\Table(name: 'rf_tabla_retencion')]
#[ORM\Entity(repositoryClass: RFTablaRetencionRepository::class)]
class RFTablaRetencion
{
#[ORM\Id]
#[ORM\GeneratedValue]
#[ORM\Column]
private ?int $id = null;
#[ORM\ManyToOne(inversedBy: 'tablaRetencion')]
private ?TerEmpresa $entidadProductora = null;
#[ORM\ManyToOne(inversedBy: 'tablaRetencion')]
private ?ParProceso $proceso = null;
#[ORM\Column(length: 15)]
private ?string $codigo = null;
#[ORM\ManyToMany(targetEntity: DocDocumento::class, inversedBy: 'tablaRetencion')]
private Collection $documentos;
#[ORM\Column(nullable:true)]
private ?float $retencionGeneral = null;
#[ORM\Column(nullable:true)]
private ?float $retencionCentral = null;
#[ORM\Column(nullable:true)]
private ?float $tiempoTotalRetencion = null;
#[ORM\Column(type: Types::TEXT,nullable:true)]
private ?string $descripcionProcesoVinculado = null;
#[ORM\Column(length: 255,nullable:true)]
private ?string $coordinadorRecurso = null;
#[ORM\Column(type: Types::DATETIME_MUTABLE)]
private ?\DateTimeInterface $fechaRevision = null;
#[ORM\Column(length: 255)]
private ?string $createUser = null;
#[ORM\Column(type: Types::DATETIME_MUTABLE)]
private ?\DateTimeInterface $createAt = null;
#[ORM\Column(length: 255)]
private ?string $updateUser = null;
#[ORM\Column(type: Types::DATETIME_MUTABLE)]
private ?\DateTimeInterface $updateAt = null;
#[ORM\ManyToMany(targetEntity: ParDisposicionFinal::class, inversedBy: 'tablaRetencion')]
private Collection $disposicionFinal;
#[ORM\ManyToOne(inversedBy: 'tablaRetencion')]
private ?ParEstado $estado = null;
#[ORM\Column(type: Types::TEXT, nullable: true)]
private ?string $observacionRechazo = null;
#[ORM\Column(type: Types::DATETIME_MUTABLE, nullable: true)]
private ?\DateTimeInterface $fechaAprobacion = null;
#[ORM\OneToMany(mappedBy: 'tablaRetencion', targetEntity: RFTablaRetencionFormato::class)]
private Collection $tablaRetencionFormato;
#[ORM\Column(type: Types::TEXT, nullable: true)]
private ?string $historicoDocumentos = null;
#[ORM\ManyToOne(inversedBy: 'tablaRetenciones')]
private ?ParSubproceso $subProceso = null;
#[ORM\ManyToOne(inversedBy: 'revisionTablasRetencion')]
private ?GHPerfilCargo $revisionDirectorProceso = null;
public function __construct()
{
$this->documentos = new ArrayCollection();
$this->disposicionFinal = new ArrayCollection();
$this->tablaRetencionFormato = new ArrayCollection();
}
public function getId(): ?int
{
return $this->id;
}
public function getEntidadProductora(): ?TerEmpresa
{
return $this->entidadProductora;
}
public function setEntidadProductora(?TerEmpresa $entidadProductora): static
{
$this->entidadProductora = $entidadProductora;
return $this;
}
public function getProceso(): ?ParProceso
{
return $this->proceso;
}
public function setProceso(?ParProceso $proceso): static
{
$this->proceso = $proceso;
return $this;
}
public function getCodigo(): ?string
{
return $this->codigo;
}
public function setCodigo(string $codigo): static
{
$this->codigo = $codigo;
return $this;
}
/**
* @return Collection<int, DocDocumento>
*/
public function getDocumentos(): Collection
{
return $this->documentos;
}
public function addDocumento(DocDocumento $documento): static
{
if (!$this->documentos->contains($documento)) {
$this->documentos->add($documento);
}
return $this;
}
public function removeDocumento(DocDocumento $documento): static
{
$this->documentos->removeElement($documento);
return $this;
}
public function getRetencionGeneral(): ?float
{
return $this->retencionGeneral;
}
public function setRetencionGeneral(?float $retencionGeneral): static
{
$this->retencionGeneral = $retencionGeneral;
return $this;
}
public function getRetencionCentral(): ?float
{
return $this->retencionCentral;
}
public function setRetencionCentral(?float $retencionCentral): static
{
$this->retencionCentral = $retencionCentral;
return $this;
}
public function getTiempoTotalRetencion(): ?float
{
return $this->tiempoTotalRetencion;
}
public function setTiempoTotalRetencion(?float $tiempoTotalRetencion): static
{
$this->tiempoTotalRetencion = $tiempoTotalRetencion;
return $this;
}
public function getDescripcionProcesoVinculado(): ?string
{
return $this->descripcionProcesoVinculado;
}
public function setDescripcionProcesoVinculado(?string $descripcionProcesoVinculado): static
{
$this->descripcionProcesoVinculado = $descripcionProcesoVinculado;
return $this;
}
public function getCoordinadorRecurso(): ?string
{
return $this->coordinadorRecurso;
}
public function setCoordinadorRecurso(?string $coordinadorRecurso): static
{
$this->coordinadorRecurso = $coordinadorRecurso;
return $this;
}
public function getFechaRevision(): ?\DateTimeInterface
{
return $this->fechaRevision;
}
public function setFechaRevision(?\DateTimeInterface $fechaRevision): static
{
$this->fechaRevision = $fechaRevision;
return $this;
}
public function getCreateUser(): ?string
{
return $this->createUser;
}
public function setCreateUser(string $createUser): static
{
$this->createUser = $createUser;
return $this;
}
public function getCreateAt(): ?\DateTimeInterface
{
return $this->createAt;
}
public function setCreateAt(\DateTimeInterface $createAt): static
{
$this->createAt = $createAt;
return $this;
}
public function getUpdateUser(): ?string
{
return $this->updateUser;
}
public function setUpdateUser(string $updateUser): static
{
$this->updateUser = $updateUser;
return $this;
}
public function getUpdateAt(): ?\DateTimeInterface
{
return $this->updateAt;
}
public function setUpdateAt(\DateTimeInterface $updateAt): static
{
$this->updateAt = $updateAt;
return $this;
}
/**
* @return Collection<int, ParDisposicionFinal>
*/
public function getDisposicionFinal(): Collection
{
return $this->disposicionFinal;
}
public function addDisposicionFinal(ParDisposicionFinal $disposicionFinal): static
{
if (!$this->disposicionFinal->contains($disposicionFinal)) {
$this->disposicionFinal->add($disposicionFinal);
}
return $this;
}
public function removeDisposicionFinal(ParDisposicionFinal $disposicionFinal): static
{
$this->disposicionFinal->removeElement($disposicionFinal);
return $this;
}
public function getEstado(): ?ParEstado
{
return $this->estado;
}
public function setEstado(?ParEstado $estado): static
{
$this->estado = $estado;
return $this;
}
public function getObservacionRechazo(): ?string
{
return $this->observacionRechazo;
}
public function setObservacionRechazo(?string $observacionRechazo): static
{
$this->observacionRechazo = $observacionRechazo;
return $this;
}
public function getFechaAprobacion(): ?\DateTimeInterface
{
return $this->fechaAprobacion;
}
public function setFechaAprobacion(?\DateTimeInterface $fechaAprobacion): static
{
$this->fechaAprobacion = $fechaAprobacion;
return $this;
}
/**
* @return Collection<int, RFTablaRetencionFormato>
*/
public function getTablaRetencionFormato(): Collection
{
return $this->tablaRetencionFormato;
}
public function addTablaRetencionFormato(RFTablaRetencionFormato $tablaRetencionFormato): static
{
if (!$this->tablaRetencionFormato->contains($tablaRetencionFormato)) {
$this->tablaRetencionFormato->add($tablaRetencionFormato);
$tablaRetencionFormato->setTablaRetencion($this);
}
return $this;
}
public function removeTablaRetencionFormato(RFTablaRetencionFormato $tablaRetencionFormato): static
{
if ($this->tablaRetencionFormato->removeElement($tablaRetencionFormato)) {
// set the owning side to null (unless already changed)
if ($tablaRetencionFormato->getTablaRetencion() === $this) {
$tablaRetencionFormato->setTablaRetencion(null);
}
}
return $this;
}
public function getHistoricoDocumentos(): ?string
{
return $this->historicoDocumentos;
}
public function setHistoricoDocumentos(?string $historicoDocumentos): static
{
$this->historicoDocumentos = $historicoDocumentos;
return $this;
}
public function getSubProceso(): ?ParSubproceso
{
return $this->subProceso;
}
public function setSubProceso(?ParSubproceso $subProceso): static
{
$this->subProceso = $subProceso;
return $this;
}
public function getRevisionDirectorProceso(): ?GHPerfilCargo
{
return $this->revisionDirectorProceso;
}
public function setRevisionDirectorProceso(?GHPerfilCargo $revisionDirectorProceso): static
{
$this->revisionDirectorProceso = $revisionDirectorProceso;
return $this;
}
}