src/Entity/Admin.php

Open in your IDE?
  1. <?php
  2. namespace App\Entity;
  3. use App\Repository\AdminRepository;
  4. use Doctrine\Common\Collections\ArrayCollection;
  5. use Doctrine\Common\Collections\Collection;
  6. use Doctrine\ORM\Mapping as ORM;
  7. #[ORM\Table(name'`admin`')]
  8. #[ORM\Entity(repositoryClassAdminRepository::class)]
  9. class Admin extends User
  10. {
  11.     #[ORM\Id]
  12.     #[ORM\GeneratedValue]
  13.     #[ORM\Column(type'integer')]
  14.     private $id;
  15.     #[ORM\OneToMany(mappedBy'adminCargo'targetEntityEmpresa::class)]
  16.     private $empresas;
  17.     #[ORM\OneToMany(mappedBy'admin'targetEntitySolicitarEmpresa::class)]
  18.     private $solicitarEmpresas;
  19.     // #[ORM\OneToMany(mappedBy: 'adminCargo', targetEntity: Cargo::class)]
  20.     // private $cargos;
  21.     #[ORM\OneToMany(mappedBy'adminCargo'targetEntityPrestador::class)]
  22.     private $prestadors;
  23.     #[ORM\OneToMany(mappedBy'adminCargo'targetEntitySubBeneficio::class)]
  24.     private $subBeneficios;
  25.     #[ORM\OneToMany(mappedBy'adminCargo'targetEntityBeneficio::class)]
  26.     private $beneficios;
  27.     #[ORM\OneToMany(mappedBy'adminCargo'targetEntityProveedor::class)]
  28.     private $proveedors;
  29.     #[ORM\OneToMany(mappedBy'adminCargo'targetEntityFacturaDeCompra::class)]
  30.     private $facturaDeCompras;
  31.     #[ORM\OneToMany(mappedBy'adminCargo'targetEntityCompraStock::class)]
  32.     private $compraStocks;
  33.     #[ORM\OneToMany(mappedBy'adminCargo'targetEntityEmpleadoBeneficio::class)]
  34.     private $empleadoBeneficios;
  35.     #[ORM\OneToMany(mappedBy'adminCargo'targetEntityConcepto::class)]
  36.     private $conceptos;
  37.     #[ORM\OneToMany(mappedBy'adminCargo'targetEntityMediosDePago::class)]
  38.     private $mediosDePagos;
  39.     #[ORM\OneToMany(mappedBy'adminPagoManual'targetEntityBoleta::class)]
  40.     private $boleta;
  41.     #[ORM\OneToMany(mappedBy'adminEdito'targetEntityEscalaSalarial::class)]
  42.     private $escalaSalarials;
  43.     #[ORM\OneToMany(mappedBy'adminCargo'targetEntityMotivoLiquidacionEmpleado::class)]
  44.     private $motivoLiquidacionEmpleado;
  45.     #[ORM\OneToMany(mappedBy'adminCargo'targetEntityAcuerdoDePago::class)]
  46.     private $acuerdoDePagos;
  47.     #[ORM\OneToMany(mappedBy'AdminCargo'targetEntityPagosAcuerdo::class)]
  48.     private $pagosAcuerdos;
  49.     #[ORM\OneToMany(mappedBy'adminAprobo'targetEntityInformarPago::class)]
  50.     private $informarPagos;
  51.     #[ORM\OneToMany(mappedBy'adminCargo'targetEntityItemDenuncia::class)]
  52.     private $itemDenuncias;
  53.     #[ORM\OneToMany(mappedBy'adminCargo'targetEntityDenuncia::class)]
  54.     private $denuncias;
  55.     #[ORM\OneToMany(mappedBy'adminCargo'targetEntityPagosBanco::class)]
  56.     private $pagosBancos;
  57.     #[ORM\OneToMany(mappedBy'adminCargo'targetEntityCertificadoDeDeuda::class)]
  58.     private Collection $certificado;
  59.     #[ORM\OneToMany(mappedBy'adminCargo'targetEntityEmpleadoRecibo::class)]
  60.     private Collection $empleadoRecibos;
  61.     public function __construct()
  62.     {
  63.         $this->empresas = new ArrayCollection();
  64.         $this->solicitarEmpresas = new ArrayCollection();
  65.         $this->prestadors = new ArrayCollection();
  66.         $this->subBeneficios = new ArrayCollection();
  67.         $this->beneficios = new ArrayCollection();
  68.         $this->proveedors = new ArrayCollection();
  69.         $this->facturaDeCompras = new ArrayCollection();
  70.         $this->compraStocks = new ArrayCollection();
  71.         $this->empleadoBeneficios = new ArrayCollection();
  72.         $this->conceptos = new ArrayCollection();
  73.         $this->mediosDePagos = new ArrayCollection();
  74.         $this->boleta = new ArrayCollection();
  75.         $this->escalaSalarials = new ArrayCollection();
  76.         $this->motivoLiquidacionEmpleado = new ArrayCollection();
  77.         $this->acuerdoDePagos = new ArrayCollection();
  78.         $this->acuerdoDePagos = new ArrayCollection();
  79.         $this->pagosAcuerdos = new ArrayCollection();
  80.         $this->informarPagos = new ArrayCollection();
  81.         $this->itemDenuncias = new ArrayCollection();
  82.         $this->denuncias = new ArrayCollection();
  83.         $this->pagosBancos = new ArrayCollection();
  84.         $this->certificado = new ArrayCollection();
  85.         $this->empleadoRecibos = new ArrayCollection();
  86.     }
  87.     /**
  88.      * @return Collection<int, Empresa>
  89.      */
  90.     public function getEmpresas(): Collection
  91.     {
  92.         return $this->empresas;
  93.     }
  94.     public function addEmpresa(Empresa $empresa): self
  95.     {
  96.         if (!$this->empresas->contains($empresa)) {
  97.             $this->empresas[] = $empresa;
  98.             $empresa->setAdminCargo($this);
  99.         }
  100.         return $this;
  101.     }
  102.     public function removeEmpresa(Empresa $empresa): self
  103.     {
  104.         if ($this->empresas->removeElement($empresa)) {
  105.             // set the owning side to null (unless already changed)
  106.             if ($empresa->getAdminCargo() === $this) {
  107.                 $empresa->setAdminCargo(null);
  108.             }
  109.         }
  110.         return $this;
  111.     }
  112.        /**
  113.      * @return Collection<int, SolicitarEmpresa>
  114.      */
  115.     public function getSolicitarEmpresas(): Collection
  116.     {
  117.         return $this->solicitarEmpresas;
  118.     }
  119.     public function addSolicitarEmpresa(SolicitarEmpresa $solicitarEmpresa): self
  120.     {
  121.         if (!$this->solicitarEmpresas->contains($solicitarEmpresa)) {
  122.             $this->solicitarEmpresas[] = $solicitarEmpresa;
  123.             $solicitarEmpresa->setAdmin($this);
  124.         }
  125.         return $this;
  126.     }
  127.     public function removeSolicitarEmpresa(SolicitarEmpresa $solicitarEmpresa): self
  128.     {
  129.         if ($this->solicitarEmpresas->removeElement($solicitarEmpresa)) {
  130.             // set the owning side to null (unless already changed)
  131.             if ($solicitarEmpresa->getAdmin() === $this) {
  132.                 $solicitarEmpresa->setAdmin(null);
  133.             }
  134.         }
  135.         return $this;
  136.     }
  137.     /**
  138.      * @return Collection<int, Prestador>
  139.      */
  140.     public function getPrestadors(): Collection
  141.     {
  142.         return $this->prestadors;
  143.     }
  144.     public function addPrestador(Prestador $prestador): self
  145.     {
  146.         if (!$this->prestadors->contains($prestador)) {
  147.             $this->prestadors[] = $prestador;
  148.             $prestador->setAdminCargo($this);
  149.         }
  150.         return $this;
  151.     }
  152.     public function removePrestador(Prestador $prestador): self
  153.     {
  154.         if ($this->prestadors->removeElement($prestador)) {
  155.             // set the owning side to null (unless already changed)
  156.             if ($prestador->getAdminCargo() === $this) {
  157.                 $prestador->setAdminCargo(null);
  158.             }
  159.         }
  160.         return $this;
  161.     }
  162.     /**
  163.      * @return Collection<int, SubBeneficio>
  164.      */
  165.     public function getSubBeneficios(): Collection
  166.     {
  167.         return $this->subBeneficios;
  168.     }
  169.     public function addSubBeneficio(SubBeneficio $subBeneficio): self
  170.     {
  171.         if (!$this->subBeneficios->contains($subBeneficio)) {
  172.             $this->subBeneficios[] = $subBeneficio;
  173.             $subBeneficio->setAdminCargo($this);
  174.         }
  175.         return $this;
  176.     }
  177.     public function removeSubBeneficio(SubBeneficio $subBeneficio): self
  178.     {
  179.         if ($this->subBeneficios->removeElement($subBeneficio)) {
  180.             // set the owning side to null (unless already changed)
  181.             if ($subBeneficio->getAdminCargo() === $this) {
  182.                 $subBeneficio->setAdminCargo(null);
  183.             }
  184.         }
  185.         return $this;
  186.     }
  187.     /**
  188.      * @return Collection<int, Beneficio>
  189.      */
  190.     public function getBeneficios(): Collection
  191.     {
  192.         return $this->beneficios;
  193.     }
  194.     public function addBeneficio(Beneficio $beneficio): self
  195.     {
  196.         if (!$this->beneficios->contains($beneficio)) {
  197.             $this->beneficios[] = $beneficio;
  198.             $beneficio->setAdminCargo($this);
  199.         }
  200.         return $this;
  201.     }
  202.     public function removeBeneficio(Beneficio $beneficio): self
  203.     {
  204.         if ($this->beneficios->removeElement($beneficio)) {
  205.             // set the owning side to null (unless already changed)
  206.             if ($beneficio->getAdminCargo() === $this) {
  207.                 $beneficio->setAdminCargo(null);
  208.             }
  209.         }
  210.         return $this;
  211.     }
  212.     /**
  213.      * @return Collection<int, Proveedor>
  214.      */
  215.     public function getProveedors(): Collection
  216.     {
  217.         return $this->proveedors;
  218.     }
  219.     public function addProveedor(Proveedor $proveedor): self
  220.     {
  221.         if (!$this->proveedors->contains($proveedor)) {
  222.             $this->proveedors[] = $proveedor;
  223.             $proveedor->setAdminCargo($this);
  224.         }
  225.         return $this;
  226.     }
  227.     public function removeProveedor(Proveedor $proveedor): self
  228.     {
  229.         if ($this->proveedors->removeElement($proveedor)) {
  230.             // set the owning side to null (unless already changed)
  231.             if ($proveedor->getAdminCargo() === $this) {
  232.                 $proveedor->setAdminCargo(null);
  233.             }
  234.         }
  235.         return $this;
  236.     }
  237.     /**
  238.      * @return Collection<int, FacturaDeCompra>
  239.      */
  240.     public function getFacturaDeCompras(): Collection
  241.     {
  242.         return $this->facturaDeCompras;
  243.     }
  244.     public function addFacturaDeCompra(FacturaDeCompra $facturaDeCompra): self
  245.     {
  246.         if (!$this->facturaDeCompras->contains($facturaDeCompra)) {
  247.             $this->facturaDeCompras[] = $facturaDeCompra;
  248.             $facturaDeCompra->setAdminCargo($this);
  249.         }
  250.         return $this;
  251.     }
  252.     public function removeFacturaDeCompra(FacturaDeCompra $facturaDeCompra): self
  253.     {
  254.         if ($this->facturaDeCompras->removeElement($facturaDeCompra)) {
  255.             // set the owning side to null (unless already changed)
  256.             if ($facturaDeCompra->getAdminCargo() === $this) {
  257.                 $facturaDeCompra->setAdminCargo(null);
  258.             }
  259.         }
  260.         return $this;
  261.     }
  262.     /**
  263.      * @return Collection<int, CompraStock>
  264.      */
  265.     public function getCompraStocks(): Collection
  266.     {
  267.         return $this->compraStocks;
  268.     }
  269.     public function addCompraStock(CompraStock $compraStock): self
  270.     {
  271.         if (!$this->compraStocks->contains($compraStock)) {
  272.             $this->compraStocks[] = $compraStock;
  273.             $compraStock->setAdminCargo($this);
  274.         }
  275.         return $this;
  276.     }
  277.     public function removeCompraStock(CompraStock $compraStock): self
  278.     {
  279.         if ($this->compraStocks->removeElement($compraStock)) {
  280.             // set the owning side to null (unless already changed)
  281.             if ($compraStock->getAdminCargo() === $this) {
  282.                 $compraStock->setAdminCargo(null);
  283.             }
  284.         }
  285.         return $this;
  286.     }
  287.     /**
  288.      * @return Collection<int, EmpleadoBeneficio>
  289.      */
  290.     public function getEmpleadoBeneficios(): Collection
  291.     {
  292.         return $this->empleadoBeneficios;
  293.     }
  294.     public function addEmpleadoBeneficio(EmpleadoBeneficio $empleadoBeneficio): self
  295.     {
  296.         if (!$this->empleadoBeneficios->contains($empleadoBeneficio)) {
  297.             $this->empleadoBeneficios[] = $empleadoBeneficio;
  298.             $empleadoBeneficio->setAdminCargo($this);
  299.         }
  300.         return $this;
  301.     }
  302.     public function removeEmpleadoBeneficio(EmpleadoBeneficio $empleadoBeneficio): self
  303.     {
  304.         if ($this->empleadoBeneficios->removeElement($empleadoBeneficio)) {
  305.             // set the owning side to null (unless already changed)
  306.             if ($empleadoBeneficio->getAdminCargo() === $this) {
  307.                 $empleadoBeneficio->setAdminCargo(null);
  308.             }
  309.         }
  310.         return $this;
  311.     }
  312.     /**
  313.      * @return Collection<int, Concepto>
  314.      */
  315.     public function getConceptos(): Collection
  316.     {
  317.         return $this->conceptos;
  318.     }
  319.     public function addConcepto(Concepto $concepto): self
  320.     {
  321.         if (!$this->conceptos->contains($concepto)) {
  322.             $this->conceptos[] = $concepto;
  323.             $concepto->setAdminCargo($this);
  324.         }
  325.         return $this;
  326.     }
  327.     public function removeConcepto(Concepto $concepto): self
  328.     {
  329.         if ($this->conceptos->removeElement($concepto)) {
  330.             // set the owning side to null (unless already changed)
  331.             if ($concepto->getAdminCargo() === $this) {
  332.                 $concepto->setAdminCargo(null);
  333.             }
  334.         }
  335.         return $this;
  336.     }
  337.     /**
  338.      * @return Collection<int, MediosDePago>
  339.      */
  340.     public function getMediosDePagos(): Collection
  341.     {
  342.         return $this->mediosDePagos;
  343.     }
  344.     public function addMediosDePago(MediosDePago $mediosDePago): self
  345.     {
  346.         if (!$this->mediosDePagos->contains($mediosDePago)) {
  347.             $this->mediosDePagos[] = $mediosDePago;
  348.             $mediosDePago->setAdminCargo($this);
  349.         }
  350.         return $this;
  351.     }
  352.     public function removeMediosDePago(MediosDePago $mediosDePago): self
  353.     {
  354.         if ($this->mediosDePagos->removeElement($mediosDePago)) {
  355.             // set the owning side to null (unless already changed)
  356.             if ($mediosDePago->getAdminCargo() === $this) {
  357.                 $mediosDePago->setAdminCargo(null);
  358.             }
  359.         }
  360.         return $this;
  361.     }
  362.     /**
  363.      * @return Collection<int, Boleta>
  364.      */
  365.     public function getBoleta(): Collection
  366.     {
  367.         return $this->boleta;
  368.     }
  369.     public function addBoleta(Boleta $boleta): self
  370.     {
  371.         if (!$this->boleta->contains($boleta)) {
  372.             $this->boleta[] = $boleta;
  373.             $boleta->setAdminPagoManual($this);
  374.         }
  375.         return $this;
  376.     }
  377.     public function removeBoleta(Boleta $boleta): self
  378.     {
  379.         if ($this->boleta->removeElement($boleta)) {
  380.             // set the owning side to null (unless already changed)
  381.             if ($boleta->getAdminPagoManual() === $this) {
  382.                 $boleta->setAdminPagoManual(null);
  383.             }
  384.         }
  385.         return $this;
  386.     }
  387.     /**
  388.      * @return Collection<int, EscalaSalarial>
  389.      */
  390.     public function getEscalaSalarials(): Collection
  391.     {
  392.         return $this->escalaSalarials;
  393.     }
  394.     public function addEscalaSalarial(EscalaSalarial $escalaSalarial): self
  395.     {
  396.         if (!$this->escalaSalarials->contains($escalaSalarial)) {
  397.             $this->escalaSalarials[] = $escalaSalarial;
  398.             $escalaSalarial->setAdminEdito($this);
  399.         }
  400.         return $this;
  401.     }
  402.     public function removeEscalaSalarial(EscalaSalarial $escalaSalarial): self
  403.     {
  404.         if ($this->escalaSalarials->removeElement($escalaSalarial)) {
  405.             // set the owning side to null (unless already changed)
  406.             if ($escalaSalarial->getAdminEdito() === $this) {
  407.                 $escalaSalarial->setAdminEdito(null);
  408.             }
  409.         }
  410.         return $this;
  411.     }
  412.     /**
  413.      * @return Collection<int, MotivoLiquidacionEmpleado>
  414.      */
  415.     public function getMotivoLiquidacionEmpleado(): Collection
  416.     {
  417.         return $this->motivoLiquidacionEmpleado;
  418.     }
  419.     public function addMotivoLiquidacionEmpleado(MotivoLiquidacionEmpleado $motivoLiquidacionEmpleado): self
  420.     {
  421.         if (!$this->motivoLiquidacionEmpleado->contains($motivoLiquidacionEmpleado)) {
  422.             $this->motivoLiquidacionEmpleado[] = $motivoLiquidacionEmpleado;
  423.             $motivoLiquidacionEmpleado->setAdminCargo($this);
  424.         }
  425.         return $this;
  426.     }
  427.     public function removeMotivoLiquidacionEmpleado(MotivoLiquidacionEmpleado $motivoLiquidacionEmpleado): self
  428.     {
  429.         if ($this->motivoLiquidacionEmpleado->removeElement($motivoLiquidacionEmpleado)) {
  430.             // set the owning side to null (unless already changed)
  431.             if ($motivoLiquidacionEmpleado->getAdminCargo() === $this) {
  432.                 $motivoLiquidacionEmpleado->setAdminCargo(null);
  433.             }
  434.         }
  435.         return $this;
  436.     }
  437.     /**
  438.      * @return Collection<int, AcuerdoDePago>
  439.      */
  440.     public function getAcuerdoDePagos(): Collection
  441.     {
  442.         return $this->acuerdoDePagos;
  443.     }
  444.     public function addAcuerdoDePago(AcuerdoDePago $acuerdoDePago): self
  445.     {
  446.         if (!$this->acuerdoDePagos->contains($acuerdoDePago)) {
  447.             $this->acuerdoDePagos[] = $acuerdoDePago;
  448.             $acuerdoDePago->setAdminCargo($this);
  449.         }
  450.         return $this;
  451.     }
  452.     public function removeAcuerdoDePago(AcuerdoDePago $acuerdoDePago): self
  453.     {
  454.         if ($this->acuerdoDePagos->removeElement($acuerdoDePago)) {
  455.             // set the owning side to null (unless already changed)
  456.             if ($acuerdoDePago->getAdminCargo() === $this) {
  457.                 $acuerdoDePago->setAdminCargo(null);
  458.             }
  459.         }
  460.         return $this;
  461.     }
  462.   
  463.     /**
  464.      * @return Collection<int, PagosAcuerdo>
  465.      */
  466.     public function getPagosAcuerdos(): Collection
  467.     {
  468.         return $this->pagosAcuerdos;
  469.     }
  470.     public function addPagosAcuerdo(PagosAcuerdo $pagosAcuerdo): self
  471.     {
  472.         if (!$this->pagosAcuerdos->contains($pagosAcuerdo)) {
  473.             $this->pagosAcuerdos[] = $pagosAcuerdo;
  474.             $pagosAcuerdo->setAdminCargo($this);
  475.         }
  476.         return $this;
  477.     }
  478.     public function removePagosAcuerdo(PagosAcuerdo $pagosAcuerdo): self
  479.     {
  480.         if ($this->pagosAcuerdos->removeElement($pagosAcuerdo)) {
  481.             // set the owning side to null (unless already changed)
  482.             if ($pagosAcuerdo->getAdminCargo() === $this) {
  483.                 $pagosAcuerdo->setAdminCargo(null);
  484.             }
  485.         }
  486.         return $this;
  487.     }
  488.     /**
  489.      * @return Collection<int, InformarPago>
  490.      */
  491.     public function getInformarPagos(): Collection
  492.     {
  493.         return $this->informarPagos;
  494.     }
  495.     public function addInformarPago(InformarPago $informarPago): self
  496.     {
  497.         if (!$this->informarPagos->contains($informarPago)) {
  498.             $this->informarPagos[] = $informarPago;
  499.             $informarPago->setAdminAprobo($this);
  500.         }
  501.         return $this;
  502.     }
  503.     public function removeInformarPago(InformarPago $informarPago): self
  504.     {
  505.         if ($this->informarPagos->removeElement($informarPago)) {
  506.             // set the owning side to null (unless already changed)
  507.             if ($informarPago->getAdminAprobo() === $this) {
  508.                 $informarPago->setAdminAprobo(null);
  509.             }
  510.         }
  511.         return $this;
  512.     }
  513.     /**
  514.      * @return Collection<int, ItemDenuncia>
  515.      */
  516.     public function getItemDenuncias(): Collection
  517.     {
  518.         return $this->itemDenuncias;
  519.     }
  520.     public function addItemDenuncia(ItemDenuncia $itemDenuncia): self
  521.     {
  522.         if (!$this->itemDenuncias->contains($itemDenuncia)) {
  523.             $this->itemDenuncias[] = $itemDenuncia;
  524.             $itemDenuncia->setAdminCargo($this);
  525.         }
  526.         return $this;
  527.     }
  528.     public function removeItemDenuncia(ItemDenuncia $itemDenuncia): self
  529.     {
  530.         if ($this->itemDenuncias->removeElement($itemDenuncia)) {
  531.             // set the owning side to null (unless already changed)
  532.             if ($itemDenuncia->getAdminCargo() === $this) {
  533.                 $itemDenuncia->setAdminCargo(null);
  534.             }
  535.         }
  536.         return $this;
  537.     }
  538.     /**
  539.      * @return Collection<int, Denuncia>
  540.      */
  541.     public function getDenuncias(): Collection
  542.     {
  543.         return $this->denuncias;
  544.     }
  545.     public function addDenuncia(Denuncia $denuncia): self
  546.     {
  547.         if (!$this->denuncias->contains($denuncia)) {
  548.             $this->denuncias[] = $denuncia;
  549.             $denuncia->setAdminCargo($this);
  550.         }
  551.         return $this;
  552.     }
  553.     public function removeDenuncia(Denuncia $denuncia): self
  554.     {
  555.         if ($this->denuncias->removeElement($denuncia)) {
  556.             // set the owning side to null (unless already changed)
  557.             if ($denuncia->getAdminCargo() === $this) {
  558.                 $denuncia->setAdminCargo(null);
  559.             }
  560.         }
  561.         return $this;
  562.     }
  563.     
  564.     /**
  565.      * @return Collection<int, PagosBanco>
  566.      */
  567.     public function getPagosBancos(): Collection
  568.     {
  569.         return $this->pagosBancos;
  570.     }
  571.     public function addPagosBanco(PagosBanco $pagosBanco): self
  572.     {
  573.         if (!$this->pagosBancos->contains($pagosBanco)) {
  574.             $this->pagosBancos[] = $pagosBanco;
  575.             $pagosBanco->setAdminCargo($this);
  576.         }
  577.         return $this;
  578.     }
  579.     public function removePagosBanco(PagosBanco $pagosBanco): self
  580.     {
  581.         if ($this->pagosBancos->removeElement($pagosBanco)) {
  582.             // set the owning side to null (unless already changed)
  583.             if ($pagosBanco->getAdminCargo() === $this) {
  584.                 $pagosBanco->setAdminCargo(null);
  585.             }
  586.         }
  587.         return $this;
  588.     }
  589.     /**
  590.      * @return Collection<int, CertificadoDeDeuda>
  591.      */
  592.     public function getCertificado(): Collection
  593.     {
  594.         return $this->certificado;
  595.     }
  596.     public function addCertificado(CertificadoDeDeuda $certificado): self
  597.     {
  598.         if (!$this->certificado->contains($certificado)) {
  599.             $this->certificado->add($certificado);
  600.             $certificado->setAdminCargo($this);
  601.         }
  602.         return $this;
  603.     }
  604.     public function removeCertificado(CertificadoDeDeuda $certificado): self
  605.     {
  606.         if ($this->certificado->removeElement($certificado)) {
  607.             // set the owning side to null (unless already changed)
  608.             if ($certificado->getAdminCargo() === $this) {
  609.                 $certificado->setAdminCargo(null);
  610.             }
  611.         }
  612.         return $this;
  613.     }
  614.     /**
  615.      * @return Collection<int, EmpleadoRecibo>
  616.      */
  617.     public function getEmpleadoRecibos(): Collection
  618.     {
  619.         return $this->empleadoRecibos;
  620.     }
  621.     public function addEmpleadoRecibo(EmpleadoRecibo $empleadoRecibo): self
  622.     {
  623.         if (!$this->empleadoRecibos->contains($empleadoRecibo)) {
  624.             $this->empleadoRecibos->add($empleadoRecibo);
  625.             $empleadoRecibo->setAdminCargo($this);
  626.         }
  627.         return $this;
  628.     }
  629.     public function removeEmpleadoRecibo(EmpleadoRecibo $empleadoRecibo): self
  630.     {
  631.         if ($this->empleadoRecibos->removeElement($empleadoRecibo)) {
  632.             // set the owning side to null (unless already changed)
  633.             if ($empleadoRecibo->getAdminCargo() === $this) {
  634.                 $empleadoRecibo->setAdminCargo(null);
  635.             }
  636.         }
  637.         return $this;
  638.     }
  639. }