<?php
namespace App\Entity;
use App\Repository\TerEmpresaRepository;
use Doctrine\Common\Collections\ArrayCollection;
use Doctrine\Common\Collections\Collection;
use Doctrine\DBAL\Types\Types;
use Doctrine\ORM\Mapping as ORM;
#[ORM\Entity(repositoryClass: TerEmpresaRepository::class)]
class TerEmpresa {
#[ORM\Id]
#[ORM\GeneratedValue]
#[ORM\Column]
private ?int $id = null;
#[ORM\ManyToMany(targetEntity: GHPerfilCargo::class, mappedBy: 'empresaFilial')]
private Collection $perfilCargo;
#[ORM\OneToMany(mappedBy: 'empresaFilial', targetEntity: GHVacante::class)]
private Collection $vacante;
#[ORM\Column(length: 100)]
private ?string $nombre = null;
#[ORM\OneToMany(mappedBy: 'empresaFilial', targetEntity: GHSolicitudDotacion::class)]
private Collection $solicitudDotacion;
#[ORM\OneToMany(mappedBy: 'empresaFilial', targetEntity: GHContrato::class)]
private Collection $contrato;
#[ORM\Column(length: 255)]
private ?string $direccion = null;
#[ORM\Column(length: 255)]
private ?string $telefono = null;
#[ORM\Column(length: 100)]
private ?string $correo = null;
#[ORM\Column(length: 255)]
private ?string $logo = null;
#[ORM\Column(type: Types::DATETIME_MUTABLE)]
private ?\DateTimeInterface $createAt = null;
#[ORM\Column(length: 50)]
private ?string $createUser = null;
#[ORM\Column(type: Types::DATETIME_MUTABLE)]
private ?\DateTimeInterface $updateAt = null;
#[ORM\Column(length: 50)]
private ?string $updateUser = null;
#[ORM\Column(length: 50)]
private ?string $nit = null;
#[ORM\Column]
private ?int $digitoVerificacion = null;
#[ORM\Column(length: 255)]
private ?string $representanteLegal = null;
#[ORM\OneToMany(mappedBy: 'empresaFilial', targetEntity: JurProceso::class)]
private Collection $proceso;
#[ORM\OneToMany(mappedBy: 'empresa', targetEntity: GHCambioContrato::class)]
private Collection $cambioContrato;
#[ORM\OneToMany(mappedBy: 'entidadProductora', targetEntity: RFTablaRetencion::class)]
private Collection $tablaRetencion;
#[ORM\OneToMany(mappedBy: 'entidadProductora', targetEntity: RFFUID::class)]
private Collection $FUID;
#[ORM\OneToMany(mappedBy: 'empresa', targetEntity: RFInventarioDocumentalGesHum::class)]
private Collection $inventarioDocumentalGesHum;
#[ORM\OneToMany(mappedBy: 'empresa', targetEntity: RFInventarioDocumentalSST::class)]
private Collection $inventarioDocumentalSST;
#[ORM\OneToMany(mappedBy: 'empresa', targetEntity: JurOperacionSospechosa::class)]
private Collection $operacionesSospechosas;
#[ManyToMany(targetEntity: GHPerfilCargo::class, mappedBy: 'empresaServicios')]
private Collection $perfilCargoServicios;
#[ORM\Column(length: 20, nullable: true)]
private ?string $abreviatura = null;
#[ORM\ManyToMany(targetEntity: TerSedeEmpresa::class, mappedBy: 'empresaFilial')]
private Collection $sedeEmpresa;
#[ORM\OneToMany(mappedBy: 'empresa', targetEntity: GHMatrizEntrenamiento::class)]
private Collection $matrizEntrenamientos;
#[ORM\ManyToMany(targetEntity: JurRegistroCumplimiento::class, mappedBy: 'empresa')]
private Collection $registroCumplimiento;
#[ORM\ManyToMany(targetEntity: TerProveedor::class, mappedBy: 'empresaFilial')]
private Collection $proveedor;
#[ORM\OneToMany(mappedBy: 'empresaFilial', targetEntity: RFInventarioActivos::class)]
private Collection $inventarioActivos;
#[ORM\OneToMany(mappedBy: 'empresaFilial', targetEntity: RFPrecinto::class)]
private Collection $precintos;
#[ORM\OneToMany(mappedBy: 'empresaFilial', targetEntity: RFPrecintoSolicitud::class)]
private Collection $rFPrecintoSolicituds;
#[ORM\OneToMany(mappedBy: 'empresaFilial', targetEntity: RFPrecintoAsignacion::class)]
private Collection $precintoAsignacion;
#[ORM\OneToMany(mappedBy: 'empresaFilial', targetEntity: RFSolicitudCompra::class)]
private Collection $solicitudCompras;
#[ORM\OneToMany(mappedBy: 'empresaFilial', targetEntity: RFOrdenCompra::class)]
private Collection $ordenesCompra;
#[ORM\OneToMany(mappedBy: 'empresaFilial', targetEntity: RFRembolsoCajaMenor::class)]
private Collection $rembolsosCajaMenor;
#[ORM\OneToMany(mappedBy: 'serviciosInteres', targetEntity: ComProspecto::class)]
private Collection $comServiciosInteres;
#[ORM\OneToMany(mappedBy: 'terEmpresa', targetEntity: ComOfertaComercial::class)]
private Collection $comOfertaComerciales;
#[ORM\ManyToMany(targetEntity: ComProspecto::class, mappedBy: 'serviciosInteres')]
private Collection $comProspectosTerEmpresa;
#[ORM\ManyToMany(targetEntity: TerEmpresaCliente::class, mappedBy: 'servicioInteres')]
private Collection $terEmpresaClientes;
#[ORM\ManyToMany(targetEntity: TerEmpresaCliente::class, mappedBy: 'serviciosInteres')]
private Collection $terEmpresaCliente;
#[ORM\OneToMany(mappedBy: 'terEmpresa', targetEntity: ComComisionesTerceros::class)]
private Collection $comComisionesTerceros;
#[ORM\ManyToMany(targetEntity: ComCircular170YPoderes::class, mappedBy: 'empresaPrestadoraServicio')]
private Collection $comCircular170YPoderes;
#[ORM\OneToMany(mappedBy: 'terEmpresa', targetEntity: ComArchivoPlano::class)]
private Collection $comArchivoPlanos;
#[ORM\OneToMany(mappedBy: 'empresa', targetEntity: ComEncuestaSactisfaccion::class)]
private Collection $comEncuestaSactisfaccions;
#[ORM\OneToMany(mappedBy: 'empresa', targetEntity: TerPersona::class)]
private Collection $terPersonas;
public function __construct() {
$this->perfilCargo = new ArrayCollection();
$this->vacante = new ArrayCollection();
$this->solicitudDotacion = new ArrayCollection();
$this->contrato = new ArrayCollection();
$this->proceso = new ArrayCollection();
$this->cambioContrato = new ArrayCollection();
$this->tablaRetencion = new ArrayCollection();
$this->FUID = new ArrayCollection();
$this->inventarioDocumentalGesHum = new ArrayCollection();
$this->inventarioDocumentalSST = new ArrayCollection();
$this->operacionesSospechosas = new ArrayCollection();
$this->perfilCargoServicios = new ArrayCollection();
$this->sedeEmpresa = new ArrayCollection();
$this->matrizEntrenamientos = new ArrayCollection();
$this->registroCumplimiento = new ArrayCollection();
$this->proveedor = new ArrayCollection();
$this->inventarioActivos = new ArrayCollection();
$this->precintos = new ArrayCollection();
$this->rFPrecintoSolicituds = new ArrayCollection();
$this->precintoAsignacion = new ArrayCollection();
$this->solicitudCompras = new ArrayCollection();
$this->ordenesCompra = new ArrayCollection();
$this->rembolsosCajaMenor = new ArrayCollection();
$this->comProspectosTerEmpresa = new ArrayCollection();
$this->terEmpresaClientes = new ArrayCollection();
$this->terEmpresaCliente = new ArrayCollection();
$this->comComisionesTerceros = new ArrayCollection();
$this->comCircular170YPoderes = new ArrayCollection();
$this->comEncuestaSactisfaccions = new ArrayCollection();
$this->comArchivoPlanos = new ArrayCollection();
$this->terPersonas = new ArrayCollection();
}
public function __toString() {
$nombre = $this->getAbreviatura() . ' - ' . $this->getNombre();
return $nombre;
}
public function getId(): ?int {
return $this->id;
}
/**
* @return Collection<int, GHPerfilCargo>
*/
public function getPerfilCargo(): Collection {
return $this->perfilCargo;
}
public function addPerfilCargo(GHPerfilCargo $perfilCargo): static {
if (!$this->perfilCargo->contains($perfilCargo)) {
$this->perfilCargo->add($perfilCargo);
}
return $this;
}
public function removePerfilCargo(GHPerfilCargo $perfilCargo): static {
$this->perfilCargo->removeElement($perfilCargo);
return $this;
}
/**
* @return Collection<int, GHVacante>
*/
public function getVacante(): Collection {
return $this->vacante;
}
public function addVacante(GHVacante $vacante): static {
if (!$this->vacante->contains($vacante)) {
$this->vacante->add($vacante);
$vacante->setEmpresaFilial($this);
}
return $this;
}
public function removeVacante(GHVacante $vacante): static {
if ($this->vacante->removeElement($vacante)) {
// set the owning side to null (unless already changed)
if ($vacante->getEmpresaFilial() === $this) {
$vacante->setEmpresaFilial(null);
}
}
return $this;
}
public function getNombre(): ?string {
return $this->nombre;
}
public function setNombre(string $nombre): static {
$this->nombre = $nombre;
return $this;
}
/**
* @return Collection<int, GHSolicitudDotacion>
*/
public function getSolicitudDotacion(): Collection {
return $this->solicitudDotacion;
}
public function addSolicitudDotacion(GHSolicitudDotacion $solicitudDotacion): static {
if (!$this->solicitudDotacion->contains($solicitudDotacion)) {
$this->solicitudDotacion->add($solicitudDotacion);
$solicitudDotacion->setEmpresaFilial($this);
}
return $this;
}
public function removeIdSolicitudDotacion(GHSolicitudDotacion $solicitudDotacion): static {
if ($this->solicitudDotacion->removeElement($solicitudDotacion)) {
// set the owning side to null (unless already changed)
if ($solicitudDotacion->getEmpresaFilial() === $this) {
$solicitudDotacion->setEmpresaFilial(null);
}
}
return $this;
}
/**
* @return Collection<int, GHContrato>
*/
public function getContrato(): Collection {
return $this->contrato;
}
public function addContrato(GHContrato $contrato): static {
if (!$this->contrato->contains($contrato)) {
$this->contrato->add($contrato);
$contrato->setEmpresaFilial($this);
}
return $this;
}
public function removeContrato(GHContrato $contrato): static {
if ($this->contrato->removeElement($contrato)) {
// set the owning side to null (unless already changed)
if ($contrato->getEmpresaFilial() === $this) {
$contrato->setEmpresaFilial(null);
}
}
return $this;
}
public function getDireccion(): ?string {
return $this->direccion;
}
public function setDireccion(string $direccion): static {
$this->direccion = $direccion;
return $this;
}
public function getTelefono(): ?string {
return $this->telefono;
}
public function setTelefono(string $telefono): static {
$this->telefono = $telefono;
return $this;
}
public function getCorreo(): ?string {
return $this->correo;
}
public function setCorreo(string $correo): static {
$this->correo = $correo;
return $this;
}
public function getLogo(): ?string {
return $this->logo;
}
public function setLogo(string $logo): static {
$this->logo = $logo;
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 getNit(): ?string {
return $this->nit;
}
public function setNit(string $nit): static {
$this->nit = $nit;
return $this;
}
public function getDigitoVerificacion(): ?int {
return $this->digitoVerificacion;
}
public function setDigitoVerificacion(int $digitoVerificacion): static {
$this->digitoVerificacion = $digitoVerificacion;
return $this;
}
public function getRepresentanteLegal(): ?string {
return $this->representanteLegal;
}
public function setRepresentanteLegal(string $representanteLegal): static {
$this->representanteLegal = $representanteLegal;
return $this;
}
/**
* @return Collection<int, JurProceso>
*/
public function getProceso(): Collection {
return $this->proceso;
}
public function addProceso(JurProceso $proceso): static {
if (!$this->proceso->contains($proceso)) {
$this->proceso->add($proceso);
$proceso->setEmpresaFilial($this);
}
return $this;
}
public function removeProceso(JurProceso $proceso): static {
if ($this->proceso->removeElement($proceso)) {
// set the owning side to null (unless already changed)
if ($proceso->getEmpresaFilial() === $this) {
$proceso->setEmpresaFilial(null);
}
}
return $this;
}
/**
* @return Collection<int, GHCambioContrato>
*/
public function getCambioContrato(): Collection {
return $this->cambioContrato;
}
public function addCambioContrato(GHCambioContrato $cambioContrato): static {
if (!$this->cambioContrato->contains($cambioContrato)) {
$this->cambioContrato->add($cambioContrato);
$cambioContrato->setEmpresa($this);
}
return $this;
}
public function removeCambioContrato(GHCambioContrato $cambioContrato): static {
if ($this->cambioContrato->removeElement($cambioContrato)) {
// set the owning side to null (unless already changed)
if ($cambioContrato->getEmpresa() === $this) {
$cambioContrato->setEmpresa(null);
}
}
return $this;
}
/**
* @return Collection<int, RFTablaRetencion>
*/
public function getTablaRetencion(): Collection {
return $this->tablaRetencion;
}
public function addTablaRetencion(RFTablaRetencion $tablaRetencion): static {
if (!$this->tablaRetencion->contains($tablaRetencion)) {
$this->tablaRetencion->add($tablaRetencion);
$tablaRetencion->setEntidadProductora($this);
}
return $this;
}
public function removeTablaRetencion(RFTablaRetencion $tablaRetencion): static {
if ($this->tablaRetencion->removeElement($tablaRetencion)) {
// set the owning side to null (unless already changed)
if ($tablaRetencion->getEntidadProductora() === $this) {
$tablaRetencion->setEntidadProductora(null);
}
}
return $this;
}
/**
* @return Collection<int, RFFUID>
*/
public function getFUID(): Collection {
return $this->FUID;
}
public function addFUID(RFFUID $fUID): static {
if (!$this->FUID->contains($fUID)) {
$this->FUID->add($fUID);
$fUID->setEntidadProductora($this);
}
return $this;
}
public function removeFUID(RFFUID $fUID): static {
if ($this->FUID->removeElement($fUID)) {
// set the owning side to null (unless already changed)
if ($fUID->getEntidadProductora() === $this) {
$fUID->setEntidadProductora(null);
}
}
return $this;
}
/**
* @return Collection<int, RFInventarioDocumentalGesHum>
*/
public function getInventarioDocumentalGesHum(): Collection {
return $this->inventarioDocumentalGesHum;
}
public function addInventarioDocumentalGesHum(RFInventarioDocumentalGesHum $inventarioDocumentalGesHum): static {
if (!$this->inventarioDocumentalGesHum->contains($inventarioDocumentalGesHum)) {
$this->inventarioDocumentalGesHum->add($inventarioDocumentalGesHum);
$inventarioDocumentalGesHum->setEmpresa($this);
}
return $this;
}
public function removeInventarioDocumentalGesHum(RFInventarioDocumentalGesHum $inventarioDocumentalGesHum): static {
if ($this->inventarioDocumentalGesHum->removeElement($inventarioDocumentalGesHum)) {
// set the owning side to null (unless already changed)
if ($inventarioDocumentalGesHum->getEmpresa() === $this) {
$inventarioDocumentalGesHum->setEmpresa(null);
}
}
return $this;
}
/**
* @return Collection<int, RFInventarioDocumentalSST>
*/
public function getInventarioDocumentalSST(): Collection {
return $this->inventarioDocumentalSST;
}
public function addInventarioDocumentalSST(RFInventarioDocumentalSST $inventarioDocumentalSST): static {
if (!$this->inventarioDocumentalSST->contains($inventarioDocumentalSST)) {
$this->inventarioDocumentalSST->add($inventarioDocumentalSST);
$inventarioDocumentalSST->setEmpresa($this);
}
return $this;
}
public function removeInventarioDocumentalSST(RFInventarioDocumentalSST $inventarioDocumentalSST): static {
if ($this->inventarioDocumentalSST->removeElement($inventarioDocumentalSST)) {
// set the owning side to null (unless already changed)
if ($inventarioDocumentalSST->getEmpresa() === $this) {
$inventarioDocumentalSST->setEmpresa(null);
}
}
return $this;
}
/**
* @return Collection<int, JurOperacionSospechosa>
*/
public function getOperacionesSospechosas(): Collection {
return $this->operacionesSospechosas;
}
public function addOperacionesSospechosa(JurOperacionSospechosa $operacionesSospechosa): static {
if (!$this->operacionesSospechosas->contains($operacionesSospechosa)) {
$this->operacionesSospechosas->add($operacionesSospechosa);
$operacionesSospechosa->setEmpresa($this);
}
return $this;
}
public function removeOperacionesSospechosa(JurOperacionSospechosa $operacionesSospechosa): static {
if ($this->operacionesSospechosas->removeElement($operacionesSospechosa)) {
// set the owning side to null (unless already changed)
if ($operacionesSospechosa->getEmpresa() === $this) {
$operacionesSospechosa->setEmpresa(null);
}
}
return $this;
}
/**
* @return Collection<int, GHPerfilCargo>
*/
public function getPerfilCargoServicios(): Collection {
return $this->perfilCargoServicios;
}
public function addPerfilCargoServicio(GHPerfilCargo $perfilCargoServicio): static {
if (!$this->perfilCargoServicios->contains($perfilCargoServicio)) {
$this->perfilCargoServicios->add($perfilCargoServicio);
$perfilCargoServicio->addEmpresaServicio($this);
}
return $this;
}
public function removePerfilCargoServicio(GHPerfilCargo $perfilCargoServicio): static {
if ($this->perfilCargoServicios->removeElement($perfilCargoServicio)) {
$perfilCargoServicio->removeEmpresaServicio($this);
}
return $this;
}
public function getAbreviatura(): ?string {
return $this->abreviatura;
}
public function setAbreviatura(?string $abreviatura): static {
$this->abreviatura = $abreviatura;
return $this;
}
/**
* @return Collection<int, TerSedeEmpresa>
*/
public function getSedeEmpresa(): Collection
{
return $this->sedeEmpresa;
}
public function addSedeEmpresa(TerSedeEmpresa $sedeEmpresa): static
{
if (!$this->sedeEmpresa->contains($sedeEmpresa)) {
$this->sedeEmpresa->add($sedeEmpresa);
$sedeEmpresa->addEmpresaFilial($this);
}
return $this;
}
public function removeSedeEmpresa(TerSedeEmpresa $sedeEmpresa): static
{
if ($this->sedeEmpresa->removeElement($sedeEmpresa)) {
$sedeEmpresa->removeEmpresaFilial($this);
}
return $this;
}
/**
* @return Collection<int, GHMatrizEntrenamiento>
*/
public function getMatrizEntrenamientos(): Collection
{
return $this->matrizEntrenamientos;
}
public function addMatrizEntrenamiento(GHMatrizEntrenamiento $matrizEntrenamiento): static
{
if (!$this->matrizEntrenamientos->contains($matrizEntrenamiento)) {
$this->matrizEntrenamientos->add($matrizEntrenamiento);
$matrizEntrenamiento->setEmpresa($this);
}
return $this;
}
public function removeMatrizEntrenamiento(GHMatrizEntrenamiento $matrizEntrenamiento): static
{
if ($this->matrizEntrenamientos->removeElement($matrizEntrenamiento)) {
// set the owning side to null (unless already changed)
if ($matrizEntrenamiento->getEmpresa() === $this) {
$matrizEntrenamiento->setEmpresa(null);
}
}
return $this;
}
/**
* @return Collection<int, JurRegistroCumplimiento>
*/
public function getRegistroCumplimiento(): Collection
{
return $this->registroCumplimiento;
}
public function addRegistroCumplimiento(JurRegistroCumplimiento $registroCumplimiento): static
{
if (!$this->registroCumplimiento->contains($registroCumplimiento)) {
$this->registroCumplimiento->add($registroCumplimiento);
$registroCumplimiento->addEmpresa($this);
}
return $this;
}
public function removeRegistroCumplimiento(JurRegistroCumplimiento $registroCumplimiento): static
{
if ($this->registroCumplimiento->removeElement($registroCumplimiento)) {
$registroCumplimiento->removeEmpresa($this);
}
return $this;
}
/**
* @return Collection<int, TerProveedor>
*/
public function getProveedor(): Collection
{
return $this->proveedor;
}
public function addProveedor(TerProveedor $proveedor): static
{
if (!$this->proveedor->contains($proveedor)) {
$this->proveedor->add($proveedor);
$proveedor->addEmpresaFilial($this);
}
return $this;
}
public function removeProveedor(TerProveedor $proveedor): static
{
if ($this->proveedor->removeElement($proveedor)) {
$proveedor->removeEmpresaFilial($this);
}
return $this;
}
/**
* @return Collection<int, RFInventarioActivos>
*/
public function getInventarioActivos(): Collection
{
return $this->inventarioActivos;
}
public function addInventarioActivo(RFInventarioActivos $inventarioActivo): static
{
if (!$this->inventarioActivos->contains($inventarioActivo)) {
$this->inventarioActivos->add($inventarioActivo);
$inventarioActivo->setEmpresaFilial($this);
}
return $this;
}
public function removeInventarioActivo(RFInventarioActivos $inventarioActivo): static
{
if ($this->inventarioActivos->removeElement($inventarioActivo)) {
// set the owning side to null (unless already changed)
if ($inventarioActivo->getEmpresaFilial() === $this) {
$inventarioActivo->setEmpresaFilial(null);
}
}
return $this;
}
/**
* @return Collection<int, RFPrecinto>
*/
public function getPrecintos(): Collection
{
return $this->precintos;
}
public function addPrecinto(RFPrecinto $precinto): static
{
if (!$this->precintos->contains($precinto)) {
$this->precintos->add($precinto);
$precinto->setEmpresaFilial($this);
}
return $this;
}
public function removePrecinto(RFPrecinto $precinto): static
{
if ($this->precintos->removeElement($precinto)) {
// set the owning side to null (unless already changed)
if ($precinto->getEmpresaFilial() === $this) {
$precinto->setEmpresaFilial(null);
}
}
return $this;
}
/**
* @return Collection<int, RFPrecintoSolicitud>
*/
public function getRFPrecintoSolicituds(): Collection
{
return $this->rFPrecintoSolicituds;
}
public function addRFPrecintoSolicitud(RFPrecintoSolicitud $rFPrecintoSolicitud): static
{
if (!$this->rFPrecintoSolicituds->contains($rFPrecintoSolicitud)) {
$this->rFPrecintoSolicituds->add($rFPrecintoSolicitud);
$rFPrecintoSolicitud->setEmpresaFilial($this);
}
return $this;
}
public function removeRFPrecintoSolicitud(RFPrecintoSolicitud $rFPrecintoSolicitud): static
{
if ($this->rFPrecintoSolicituds->removeElement($rFPrecintoSolicitud)) {
// set the owning side to null (unless already changed)
if ($rFPrecintoSolicitud->getEmpresaFilial() === $this) {
$rFPrecintoSolicitud->setEmpresaFilial(null);
}
}
return $this;
}
/**
* @return Collection<int, RFPrecintoAsignacion>
*/
public function getPrecintoAsignacion(): Collection
{
return $this->precintoAsignacion;
}
public function addPrecintoAsignacion(RFPrecintoAsignacion $precintoAsignacion): static
{
if (!$this->precintoAsignacion->contains($precintoAsignacion)) {
$this->precintoAsignacion->add($precintoAsignacion);
$precintoAsignacion->setEmpresaFilial($this);
}
return $this;
}
public function removePrecintoAsignacion(RFPrecintoAsignacion $precintoAsignacion): static
{
if ($this->precintoAsignacion->removeElement($precintoAsignacion)) {
// set the owning side to null (unless already changed)
if ($precintoAsignacion->getEmpresaFilial() === $this) {
$precintoAsignacion->setEmpresaFilial(null);
}
}
return $this;
}
/**
* @return Collection<int, RFSolicitudCompra>
*/
public function getSolicitudCompras(): Collection
{
return $this->solicitudCompras;
}
public function addSolicitudCompra(RFSolicitudCompra $solicitudCompra): static
{
if (!$this->solicitudCompras->contains($solicitudCompra)) {
$this->solicitudCompras->add($solicitudCompra);
$solicitudCompra->setEmpresaFilial($this);
}
return $this;
}
public function removeSolicitudCompra(RFSolicitudCompra $solicitudCompra): static
{
if ($this->solicitudCompras->removeElement($solicitudCompra)) {
// set the owning side to null (unless already changed)
if ($solicitudCompra->getEmpresaFilial() === $this) {
$solicitudCompra->setEmpresaFilial(null);
}
}
return $this;
}
/**
* @return Collection<int, RFOrdenCompra>
*/
public function getOrdenesCompra(): Collection
{
return $this->ordenesCompra;
}
public function addOrdenesCompra(RFOrdenCompra $ordenesCompra): static
{
if (!$this->ordenesCompra->contains($ordenesCompra)) {
$this->ordenesCompra->add($ordenesCompra);
$ordenesCompra->setEmpresaFilial($this);
}
return $this;
}
public function removeOrdenesCompra(RFOrdenCompra $ordenesCompra): static
{
if ($this->ordenesCompra->removeElement($ordenesCompra)) {
// set the owning side to null (unless already changed)
if ($ordenesCompra->getEmpresaFilial() === $this) {
$ordenesCompra->setEmpresaFilial(null);
}
}
return $this;
}
/**
* @return Collection<int, RFRembolsoCajaMenor>
*/
public function getRembolsosCajaMenor(): Collection
{
return $this->rembolsosCajaMenor;
}
public function addRembolsosCajaMenor(RFRembolsoCajaMenor $rembolsosCajaMenor): static
{
if (!$this->rembolsosCajaMenor->contains($rembolsosCajaMenor)) {
$this->rembolsosCajaMenor->add($rembolsosCajaMenor);
$rembolsosCajaMenor->setEmpresaFilial($this);
}
return $this;
}
public function removeRembolsosCajaMenor(RFRembolsoCajaMenor $rembolsosCajaMenor): static
{
if ($this->rembolsosCajaMenor->removeElement($rembolsosCajaMenor)) {
// set the owning side to null (unless already changed)
if ($rembolsosCajaMenor->getEmpresaFilial() === $this) {
$rembolsosCajaMenor->setEmpresaFilial(null);
}
}
return $this;
}
public function getComServiosInteres(): ?ComProspecto
{
return $this->comServiosInteres;
}
public function setComServiosInteres(ComProspecto $comServiosInteres): static
{
// set the owning side of the relation if necessary
if ($comServiosInteres->getServiciosInteres() !== $this) {
$comServiosInteres->setServiciosInteres($this);
}
$this->comServiosInteres = $comServiosInteres;
return $this;
}
public function getComOfertaComercial(): ?ComOfertaComercial
{
return $this->comOfertaComercial;
}
public function setComOfertaComercial(ComOfertaComercial $comOfertaComercial): static
{
// set the owning side of the relation if necessary
if ($comOfertaComercial->getTerEmpresa() !== $this) {
$comOfertaComercial->setTerEmpresa($this);
}
$this->comOfertaComercial = $comOfertaComercial;
return $this;
}
/**
* @return Collection<int, ComProspecto>
*/
public function getComProspectosTerEmpresa(): Collection
{
return $this->comProspectosTerEmpresa;
}
public function addComProspectosTerEmpresa(ComProspecto $comProspectosTerEmpresa): static
{
if (!$this->comProspectosTerEmpresa->contains($comProspectosTerEmpresa)) {
$this->comProspectosTerEmpresa->add($comProspectosTerEmpresa);
$comProspectosTerEmpresa->addServiciosIntere($this);
}
return $this;
}
public function removeComProspectosTerEmpresa(ComProspecto $comProspectosTerEmpresa): static
{
if ($this->comProspectosTerEmpresa->removeElement($comProspectosTerEmpresa)) {
$comProspectosTerEmpresa->removeServiciosIntere($this);
}
return $this;
}
/**
* @return Collection<int, TerEmpresaCliente>
*/
public function getTerEmpresaClientes(): Collection
{
return $this->terEmpresaClientes;
}
public function addTerEmpresaCliente(TerEmpresaCliente $terEmpresaCliente): static
{
if (!$this->terEmpresaClientes->contains($terEmpresaCliente)) {
$this->terEmpresaClientes->add($terEmpresaCliente);
$terEmpresaCliente->addServicioIntere($this);
}
return $this;
}
public function removeTerEmpresaCliente(TerEmpresaCliente $terEmpresaCliente): static
{
if ($this->terEmpresaClientes->removeElement($terEmpresaCliente)) {
$terEmpresaCliente->removeServicioIntere($this);
}
return $this;
}
/**
* @return Collection<int, TerEmpresaCliente>
*/
public function getTerEmpresaCliente(): Collection
{
return $this->terEmpresaCliente;
}
/**
* @return Collection<int, ComComisionesTerceros>
*/
public function getComComisionesTerceros(): Collection
{
return $this->comComisionesTerceros;
}
public function addComComisionesTercero(ComComisionesTerceros $comComisionesTercero): static
{
if (!$this->comComisionesTerceros->contains($comComisionesTercero)) {
$this->comComisionesTerceros->add($comComisionesTercero);
$comComisionesTercero->setTerEmpresa($this);
}
return $this;
}
public function removeComComisionesTercero(ComComisionesTerceros $comComisionesTercero): static
{
if ($this->comComisionesTerceros->removeElement($comComisionesTercero)) {
// set the owning side to null (unless already changed)
if ($comComisionesTercero->getTerEmpresa() === $this) {
$comComisionesTercero->setTerEmpresa(null);
}
}
return $this;
}
/**
* @return Collection<int, ComCircular170YPoderes>
*/
public function getComCircular170YPoderes(): Collection
{
return $this->comCircular170YPoderes;
}
public function addComCircular170YPodere(ComCircular170YPoderes $comCircular170YPodere): static
{
if (!$this->comCircular170YPoderes->contains($comCircular170YPodere)) {
$this->comCircular170YPoderes->add($comCircular170YPodere);
$comCircular170YPodere->addEmpresaPrestadoraServicio($this);
}
return $this;
}
public function removeComCircular170YPodere(ComCircular170YPoderes $comCircular170YPodere): static
{
if ($this->comCircular170YPoderes->removeElement($comCircular170YPodere)) {
$comCircular170YPodere->removeEmpresaPrestadoraServicio($this);
}
return $this;
}
/**
* @return Collection<int, ComEncuestaSactisfaccion>
*/
public function getComEncuestaSactisfaccions(): Collection
{
return $this->comEncuestaSactisfaccions;
}
public function addComEncuestaSactisfaccion(ComEncuestaSactisfaccion $comEncuestaSactisfaccion): static
{
if (!$this->comEncuestaSactisfaccions->contains($comEncuestaSactisfaccion)) {
$this->comEncuestaSactisfaccions->add($comEncuestaSactisfaccion);
$comEncuestaSactisfaccion->setEmpresa($this);
}
return $this;
}
public function removeComEncuestaSactisfaccion(ComEncuestaSactisfaccion $comEncuestaSactisfaccion): static
{
if ($this->comEncuestaSactisfaccions->removeElement($comEncuestaSactisfaccion)) {
// set the owning side to null (unless already changed)
if ($comEncuestaSactisfaccion->getEmpresa() === $this) {
$comEncuestaSactisfaccion->setEmpresa(null);
}
}
return $this;
}
/**
* @return Collection<int, ComArchivoPlano>
*/
public function getComArchivoPlanos(): Collection
{
return $this->comArchivoPlanos;
}
public function addComArchivoPlano(ComArchivoPlano $comArchivoPlano): static
{
if (!$this->comArchivoPlanos->contains($comArchivoPlano)) {
$this->comArchivoPlanos->add($comArchivoPlano);
$comArchivoPlano->setTerEmpresa($this);
}
return $this;
}
public function removeComArchivoPlano(ComArchivoPlano $comArchivoPlano): static
{
if ($this->comArchivoPlanos->removeElement($comArchivoPlano)) {
// set the owning side to null (unless already changed)
if ($comArchivoPlano->getTerEmpresa() === $this) {
$comArchivoPlano->setTerEmpresa(null);
}
}
return $this;
}
/**
* @return Collection<int, TerPersona>
*/
public function getTerPersonas(): Collection
{
return $this->terPersonas;
}
public function addTerPersona(TerPersona $terPersona): static
{
if (!$this->terPersonas->contains($terPersona)) {
$this->terPersonas->add($terPersona);
$terPersona->setEmpresa($this);
}
return $this;
}
public function removeTerPersona(TerPersona $terPersona): static
{
if ($this->terPersonas->removeElement($terPersona)) {
// set the owning side to null (unless already changed)
if ($terPersona->getEmpresa() === $this) {
$terPersona->setEmpresa(null);
}
}
return $this;
}
}