src/Entity/Empleado.php line 14

Open in your IDE?
  1. <?php
  2. namespace App\Entity;
  3. use App\Repository\EmpleadoRepository;
  4. use Doctrine\Common\Collections\ArrayCollection;
  5. use Doctrine\Common\Collections\Collection;
  6. use Doctrine\ORM\Mapping as ORM;
  7. use Symfony\Bridge\Doctrine\Validator\Constraints\UniqueEntity;
  8. #[ORM\Entity(repositoryClassEmpleadoRepository::class)]
  9. #[UniqueEntity(fields: ['dni'], message'Ya existe un empleado con ese DNI.')]
  10. #[UniqueEntity(fields: ['cuil'], message'Ya existe una empleado con ese CUIL.')]
  11. class Empleado
  12. {
  13.     #[ORM\Id]
  14.     #[ORM\GeneratedValue]
  15.     #[ORM\Column(type'integer')]
  16.     private $id;
  17.     #[ORM\Column(type'string'length255)]
  18.     private $nombre;
  19.     #[ORM\Column(type'string'length255)]
  20.     private $apellido;
  21.     #[ORM\Column(name'dni'type'string'length8unique:true)]
  22.     private $dni;
  23.     #[ORM\Column(name'cuil'type'string'length11unique:true)]
  24.     private $cuil;
  25.     #[ORM\Column(type'string'length255nullabletrue)]
  26.     private $email;
  27.     #[ORM\Column(type'string'length255nullabletrue)]
  28.     private $horarioLaboral;//x
  29.     #[ORM\Column(type'datetime'nullabletrue)]
  30.     private $fechaNacimiento;
  31.     #[ORM\Column(type'string'length255nullabletrue)]
  32.     private $nacionalidad;
  33.     #[ORM\Column(type'string'length255nullabletrue)]
  34.     private $provincia;
  35.     #[ORM\ManyToOne(targetEntityLocalidad::class, inversedBy'empleados')]
  36.     private $localidad;
  37.     #[ORM\Column(type'string'length255nullabletrue)]
  38.     private $domicilio;
  39.     #[ORM\Column(type'string'length255nullabletrue)]
  40.     private $telefono;
  41.     #[ORM\Column(type'text'nullabletrue)]
  42.     private $motivo;
  43.     #[ORM\Column(type'datetime'nullabletrue)]
  44.     private $fechaAltaAfip;
  45.     #[ORM\Column(type'datetime'nullabletrue)]
  46.     private $fechaLimiteMutual;
  47.     #[ORM\Column(type'datetime'nullabletrue)]
  48.     private $fechaLimiteObraSocial;
  49.     #[ORM\Column(type'integer'nullabletrue)]
  50.     private $horasTrabajadas;//x
  51.     #[ORM\Column(type'string'length255nullabletrue)]
  52.     private $horasTrabajadasDeclaradaPorEmpleado;
  53.     #[ORM\Column(type'integer'nullabletrue)]
  54.     private $horasTrabajadasAcuerdo;
  55.     #[ORM\Column(type'datetime'nullabletrue)]
  56.     private $fechaIngresoTrabajar;
  57.     #[ORM\Column(type'datetime'nullabletrue)]
  58.     private $fechaIngresoTrabajarAcuerdo;
  59.     #[ORM\Column(type'datetime'nullabletrue)]
  60.     private $fechaEgresoAcuerdo;
  61.     #[ORM\Column(type'datetime'nullabletrue)]
  62.     private $fechaIngresoSindicato;
  63.     #[ORM\Column(type'decimal'precision10scale2nullabletrue)]
  64.     private $remuneracion;//x
  65.     #[ORM\Column(type'string'length255nullabletrue)]
  66.     private $estadoCivil;
  67.     #[ORM\Column(type'string'length255nullabletrue)]
  68.     private $harina;
  69.     #[ORM\ManyToOne(targetEntityEmpresa::class, inversedBy'empleados')]
  70.     private $empresa;//x
  71.     #[ORM\Column(type'boolean'nullabletrue)]
  72.     private $otraObraSocial;
  73.     #[ORM\Column(type'string'length255nullabletrue)]
  74.     private $sexo;
  75.     #[ORM\Column(type'datetime'nullabletrue)]
  76.     private $fechaBaja;//x
  77.     #[ORM\Column(type'integer'nullabletrue)]
  78.     private $caja;
  79.     #[ORM\Column(type'boolean'nullabletrue)]
  80.     private $presentismo;
  81.     #[ORM\Column(type'string'length255nullabletrue)]
  82.     private $foto;
  83.     #[ORM\Column(type'decimal'precision10scale2nullabletrue)]
  84.     private $aguinaldo;
  85.     #[ORM\Column(type'datetime'nullabletrue)]
  86.     private $fechaRegister;
  87.     #[ORM\Column(type'boolean'nullabletrue)]
  88.     private $afiliado;
  89.     #[ORM\Column(type'datetime'nullabletrue)]
  90.     private $fechaAltaTemprana;
  91.     #[ORM\ManyToOne(targetEntitySucursal::class, inversedBy'empleado')]
  92.     private $sucursal;//x
  93.     #[ORM\OneToMany(mappedBy'empleado'targetEntityObservacion::class)]
  94.     private $observacions;
  95.     #[ORM\ManyToOne(targetEntityUser::class, inversedBy'empleado')]
  96.     private $userCargo;//x lo puedo dejar
  97.     #[ORM\Column(type'boolean'nullabletrue)]
  98.     private $isActive;
  99.     #[ORM\ManyToOne(targetEntityCargo::class, inversedBy'empleado')]
  100.     private $cargo;//x
  101.     #[ORM\ManyToOne(targetEntityCargo::class, inversedBy'empleados')]
  102.     private $cargoAcuerdo;
  103.     #[ORM\OneToMany(mappedBy'empleado'targetEntityFamiliar::class)]
  104.     private $familiars;
  105.     #[ORM\OneToMany(mappedBy'empleado'targetEntityEmpleadoBeneficio::class)]
  106.     private $empleadoBeneficios;
  107.     #[ORM\ManyToOne(targetEntityMotivoLiquidacionEmpleado::class, inversedBy'empleado')]
  108.     private $motivoLiquidacionEmpleado;
  109.     #[ORM\OneToMany(mappedBy'empleado'targetEntityEmpleadoBoleta::class)]
  110.     private $empleadoBoletas;
  111.     #[ORM\ManyToMany(targetEntityAcuerdoDePago::class, mappedBy'empleados')]
  112.     private $acuerdoDePagos;
  113.     //no va
  114.     #[ORM\ManyToMany(targetEntityEscalaSalarial::class, mappedBy'empleado')]
  115.     private $escalaSalarialAcuerdo;
  116.     #[ORM\OneToMany(mappedBy'empleado'targetEntityEmpleadoRecibo::class)]
  117.     private Collection $empleadoRecibos;
  118.     #[ORM\OneToMany(mappedBy'empleado'targetEntityEmpleadoEmpresaSucursal::class)]
  119.     private Collection $empleadoEmpresaSucursals;
  120.     #[ORM\ManyToMany(targetEntityConcepto::class, inversedBy'empleados')]
  121.     private Collection $concepto;
  122.     public function __construct()
  123.     {
  124.         $this->observacions = new ArrayCollection();
  125.         $this->familiars = new ArrayCollection();
  126.         $this->empleadoBeneficios = new ArrayCollection();
  127.         $this->empleadoBoletas = new ArrayCollection();
  128.         $this->acuerdoDePagos = new ArrayCollection();
  129.         $this->escalaSalarialAcuerdo = new ArrayCollection();
  130.         $this->empleadoRecibos = new ArrayCollection();
  131.         $this->empleadoEmpresaSucursals = new ArrayCollection();
  132.         $this->concepto = new ArrayCollection();
  133.     }
  134.     public function getId(): ?int
  135.     {
  136.         return $this->id;
  137.     }
  138.     public function getNombre(): ?string
  139.     {
  140.         return $this->nombre;
  141.     }
  142.     public function setNombre(string $nombre): self
  143.     {
  144.         $this->nombre $nombre;
  145.         return $this;
  146.     }
  147.     public function getApellido(): ?string
  148.     {
  149.         return $this->apellido;
  150.     }
  151.     public function setApellido(string $apellido): self
  152.     {
  153.         $this->apellido $apellido;
  154.         return $this;
  155.     }
  156.     public function getDni(): ?string
  157.     {
  158.         return $this->dni;
  159.     }
  160.     public function setDni(string $dni): self
  161.     {
  162.         $this->dni $dni;
  163.         return $this;
  164.     }
  165.     public function getCuil(): ?string
  166.     {
  167.         return $this->cuil;
  168.     }
  169.     public function setCuil(string $cuil): self
  170.     {
  171.         $this->cuil $cuil;
  172.         return $this;
  173.     }
  174.     public function getEmail(): ?string
  175.     {
  176.         return $this->email;
  177.     }
  178.     public function setEmail(?string $email): self
  179.     {
  180.         $this->email $email;
  181.         return $this;
  182.     }
  183.     public function getHorarioLaboral(): ?string
  184.     {
  185.         return $this->horarioLaboral;
  186.     }
  187.     public function setHorarioLaboral(?string $horarioLaboral): self
  188.     {
  189.         $this->horarioLaboral $horarioLaboral;
  190.         return $this;
  191.     }
  192.     public function getFechaNacimiento(): ?\DateTimeInterface
  193.     {
  194.         return $this->fechaNacimiento;
  195.     }
  196.     public function setFechaNacimiento(?\DateTimeInterface $fechaNacimiento): self
  197.     {
  198.         $this->fechaNacimiento $fechaNacimiento;
  199.         return $this;
  200.     }
  201.     public function getNacionalidad(): ?string
  202.     {
  203.         return $this->nacionalidad;
  204.     }
  205.     public function setNacionalidad(?string $nacionalidad): self
  206.     {
  207.         $this->nacionalidad $nacionalidad;
  208.         return $this;
  209.     }
  210.     public function getProvincia(): ?string
  211.     {
  212.         return $this->provincia;
  213.     }
  214.     public function setProvincia(?string $provincia): self
  215.     {
  216.         $this->provincia $provincia;
  217.         return $this;
  218.     }
  219.     public function getLocalidad(): ?Localidad
  220.     {
  221.         return $this->localidad;
  222.     }
  223.     public function setLocalidad(?Localidad $localidad): self
  224.     {
  225.         $this->localidad $localidad;
  226.         return $this;
  227.     }
  228.     public function getDomicilio(): ?string
  229.     {
  230.         return $this->domicilio;
  231.     }
  232.     public function setDomicilio(?string $domicilio): self
  233.     {
  234.         $this->domicilio $domicilio;
  235.         return $this;
  236.     }
  237.     public function getTelefono(): ?string
  238.     {
  239.         return $this->telefono;
  240.     }
  241.     public function setTelefono(?string $telefono): self
  242.     {
  243.         $this->telefono $telefono;
  244.         return $this;
  245.     }
  246.     public function getFechaAltaAfip(): ?\DateTimeInterface
  247.     {
  248.         return $this->fechaAltaAfip;
  249.     }
  250.     public function setFechaAltaAfip(?\DateTimeInterface $fechaAltaAfip): self
  251.     {
  252.         $this->fechaAltaAfip $fechaAltaAfip;
  253.         return $this;
  254.     }
  255.     public function getFechaLimiteMutual(): ?\DateTimeInterface
  256.     {
  257.         return $this->fechaLimiteMutual;
  258.     }
  259.     public function setFechaLimiteMutual(?\DateTimeInterface $fechaLimiteMutual): self
  260.     {
  261.         $this->fechaLimiteMutual $fechaLimiteMutual;
  262.         return $this;
  263.     }
  264.     public function getFechaLimiteObraSocial(): ?\DateTimeInterface
  265.     {
  266.         return $this->fechaLimiteObraSocial;
  267.     }
  268.     public function setFechaLimiteObraSocial(?\DateTimeInterface $fechaLimiteObraSocial): self
  269.     {
  270.         $this->fechaLimiteObraSocial $fechaLimiteObraSocial;
  271.         return $this;
  272.     }
  273.    
  274.     public function getHorasTrabajadas(): ?int
  275.     {
  276.         return $this->horasTrabajadas;
  277.     }
  278.     public function setHorasTrabajadas(?int $horasTrabajadas): self
  279.     {
  280.         $this->horasTrabajadas $horasTrabajadas;
  281.         return $this;
  282.     }
  283.     public function getHorasTrabajadasAcuerdo(): ?int
  284.     {
  285.         return $this->horasTrabajadasAcuerdo;
  286.     }
  287.     public function setHorasTrabajadasAcuerdo(?int $horasTrabajadasAcuerdo): self
  288.     {
  289.         $this->horasTrabajadasAcuerdo $horasTrabajadasAcuerdo;
  290.         return $this;
  291.     }
  292.     public function getFechaIngresoTrabajar(): ?\DateTimeInterface
  293.     {
  294.         return $this->fechaIngresoTrabajar;
  295.     }
  296.     public function setFechaIngresoTrabajar(?\DateTimeInterface $fechaIngresoTrabajar): self
  297.     {
  298.         $this->fechaIngresoTrabajar $fechaIngresoTrabajar;
  299.         return $this;
  300.     }
  301.     public function getFechaIngresoTrabajarAcuerdo(): ?\DateTimeInterface
  302.     {
  303.         return $this->fechaIngresoTrabajarAcuerdo;
  304.     }
  305.     public function setFechaIngresoTrabajarAcuerdo(?\DateTimeInterface $fechaIngresoTrabajarAcuerdo): self
  306.     {
  307.         $this->fechaIngresoTrabajarAcuerdo $fechaIngresoTrabajarAcuerdo;
  308.         return $this;
  309.     }
  310.     public function getFechaEgresoAcuerdo(): ?\DateTimeInterface
  311.     {
  312.         return $this->fechaEgresoAcuerdo;
  313.     }
  314.     public function setFechaEgresoAcuerdo(?\DateTimeInterface $fechaEgresoAcuerdo): self
  315.     {
  316.         $this->fechaEgresoAcuerdo $fechaEgresoAcuerdo;
  317.         return $this;
  318.     }
  319.     public function getFechaIngresoSindicato(): ?\DateTimeInterface
  320.     {
  321.         return $this->fechaIngresoSindicato;
  322.     }
  323.     public function setFechaIngresoSindicato(?\DateTimeInterface $fechaIngresoSindicato): self
  324.     {
  325.         $this->fechaIngresoSindicato $fechaIngresoSindicato;
  326.         return $this;
  327.     }
  328.     public function getRemuneracion(): ?string
  329.     {
  330.         return $this->remuneracion;
  331.     }
  332.     public function setRemuneracion(?string $remuneracion): self
  333.     {
  334.         $this->remuneracion $remuneracion;
  335.         return $this;
  336.     }
  337.     public function getEstadoCivil(): ?string
  338.     {
  339.         return $this->estadoCivil;
  340.     }
  341.     public function setEstadoCivil(?string $estadoCivil): self
  342.     {
  343.         $this->estadoCivil $estadoCivil;
  344.         return $this;
  345.     }
  346.     public function getHarina(): ?string
  347.     {
  348.         return $this->harina;
  349.     }
  350.     public function setHarina(?string $harina): self
  351.     {
  352.         $this->harina $harina;
  353.         return $this;
  354.     }
  355.     public function getEmpresa(): ?Empresa
  356.     {
  357.         return $this->empresa;
  358.     }
  359.     public function setEmpresa(?Empresa $empresa): self
  360.     {
  361.         $this->empresa $empresa;
  362.         return $this;
  363.     }
  364.     public function getOtraObraSocial(): ?bool
  365.     {
  366.         return $this->otraObraSocial;
  367.     }
  368.     public function setOtraObraSocial(?bool $otraObraSocial): self
  369.     {
  370.         $this->otraObraSocial $otraObraSocial;
  371.         return $this;
  372.     }
  373.     public function getSexo(): ?string
  374.     {
  375.         return $this->sexo;
  376.     }
  377.     public function setSexo(?string $sexo): self
  378.     {
  379.         $this->sexo $sexo;
  380.         return $this;
  381.     }
  382.     public function getFechaBaja(): ?\DateTimeInterface
  383.     {
  384.         return $this->fechaBaja;
  385.     }
  386.     public function setFechaBaja(?\DateTimeInterface $fechaBaja): self
  387.     {
  388.         $this->fechaBaja $fechaBaja;
  389.         return $this;
  390.     }
  391.     public function getCaja(): ?int
  392.     {
  393.         return $this->caja;
  394.     }
  395.     public function setCaja(?int $caja): self
  396.     {
  397.         $this->caja $caja;
  398.         return $this;
  399.     }
  400.     public function getPresentismo(): ?bool
  401.     {
  402.         return $this->presentismo;
  403.     }
  404.     public function setPresentismo(?bool $presentismo): self
  405.     {
  406.         $this->presentismo $presentismo;
  407.         return $this;
  408.     }
  409.     public function getFoto(): ?string
  410.     {
  411.         return $this->foto;
  412.     }
  413.     public function setFoto(?string $foto): self
  414.     {
  415.         $this->foto $foto;
  416.         return $this;
  417.     }
  418.     public function getAguinaldo(): ?string
  419.     {
  420.         return $this->aguinaldo;
  421.     }
  422.     public function setAguinaldo(?string $aguinaldo): self
  423.     {
  424.         $this->aguinaldo $aguinaldo;
  425.         return $this;
  426.     }
  427.     public function getFechaRegister(): ?\DateTimeInterface
  428.     {
  429.         return $this->fechaRegister;
  430.     }
  431.     public function setFechaRegister(?\DateTimeInterface $fechaRegister): self
  432.     {
  433.         $this->fechaRegister $fechaRegister;
  434.         return $this;
  435.     }
  436.     public function getAfiliado(): ?bool
  437.     {
  438.         return $this->afiliado;
  439.     }
  440.     public function setAfiliado(?bool $afiliado): self
  441.     {
  442.         $this->afiliado $afiliado;
  443.         return $this;
  444.     }
  445.     public function getSucursal(): ?Sucursal
  446.     {
  447.         return $this->sucursal;
  448.     }
  449.     public function setSucursal(?Sucursal $sucursal): self
  450.     {
  451.         $this->sucursal $sucursal;
  452.         return $this;
  453.     }
  454.     /**
  455.      * @return Collection<int, Observacion>
  456.      */
  457.     public function getObservacions(): Collection
  458.     {
  459.         return $this->observacions;
  460.     }
  461.     public function addObservacion(Observacion $observacion): self
  462.     {
  463.         if (!$this->observacions->contains($observacion)) {
  464.             $this->observacions[] = $observacion;
  465.             $observacion->setEmpleado($this);
  466.         }
  467.         return $this;
  468.     }
  469.     public function removeObservacion(Observacion $observacion): self
  470.     {
  471.         if ($this->observacions->removeElement($observacion)) {
  472.             // set the owning side to null (unless already changed)
  473.             if ($observacion->getEmpleado() === $this) {
  474.                 $observacion->setEmpleado(null);
  475.             }
  476.         }
  477.         return $this;
  478.     }
  479.     /**
  480.      * Get the value of userCargo
  481.      */ 
  482.     public function getUserCargo(): ?User
  483.     {
  484.         return $this->userCargo;
  485.     }
  486.     /**
  487.      * Set the value of userCargo
  488.      *
  489.      * @return  self
  490.      */ 
  491.     public function setUserCargo(?User $userCargo)
  492.     {
  493.         $this->userCargo $userCargo;
  494.         return $this;
  495.     }
  496.     /**
  497.      * Get the value of isActive
  498.      */ 
  499.     public function getIsActive()
  500.     {
  501.         return $this->isActive;
  502.     }
  503.     /**
  504.      * Set the value of isActive
  505.      *
  506.      * @return  self
  507.      */ 
  508.     public function setIsActive($isActive)
  509.     {
  510.         $this->isActive $isActive;
  511.         return $this;
  512.     }
  513.     /**
  514.      * Get the value of cargo
  515.      */
  516.     public function getCargo(): ?Cargo
  517.     {
  518.         return $this->cargo;
  519.     }
  520.     /**
  521.      * Set the value of cargo
  522.      */
  523.     public function setCargo(?Cargo $cargo): self
  524.     {
  525.         $this->cargo $cargo;
  526.         return $this;
  527.     }
  528.         /**
  529.      * Get the value of cargo
  530.      */
  531.     public function getCargoAcuerdo(): ?Cargo
  532.     {
  533.         return $this->cargoAcuerdo;
  534.     }
  535.     /**
  536.      * Set the value of cargo
  537.      */
  538.     public function setCargoAcuerdo(?Cargo $cargoAcuerdo): self
  539.     {
  540.         $this->cargoAcuerdo $cargoAcuerdo;
  541.         return $this;
  542.     }
  543.     /**
  544.      * Get the value of motivo
  545.      */ 
  546.     public function getMotivo()
  547.     {
  548.         return $this->motivo;
  549.     }
  550.     /**
  551.      * Set the value of motivo
  552.      *
  553.      * @return  self
  554.      */ 
  555.     public function setMotivo($motivo)
  556.     {
  557.         $this->motivo $motivo;
  558.         return $this;
  559.     }
  560.         /**
  561.      * @return Collection<int, Familiar>
  562.      */
  563.     public function getFamiliars(): Collection
  564.     {
  565.         return $this->familiars;
  566.     }
  567.     public function addFamiliar(Familiar $familiar): self
  568.     {
  569.         if (!$this->familiars->contains($familiar)) {
  570.             $this->familiars[] = $familiar;
  571.             $familiar->setEmpleado($this);
  572.         }
  573.         return $this;
  574.     }
  575.     public function removeFamiliar(Familiar $familiar): self
  576.     {
  577.         if ($this->familiars->removeElement($familiar)) {
  578.             // set the owning side to null (unless already changed)
  579.             if ($familiar->getEmpleado() === $this) {
  580.                 $familiar->setEmpleado(null);
  581.             }
  582.         }
  583.         return $this;
  584.     }
  585.     /**
  586.      * @return Collection<int, EmpleadoBeneficio>
  587.      */
  588.     public function getEmpleadoBeneficios(): Collection
  589.     {
  590.         return $this->empleadoBeneficios;
  591.     }
  592.     public function addEmpleadoBeneficio(EmpleadoBeneficio $empleadoBeneficio): self
  593.     {
  594.         if (!$this->empleadoBeneficios->contains($empleadoBeneficio)) {
  595.             $this->empleadoBeneficios[] = $empleadoBeneficio;
  596.             $empleadoBeneficio->setEmpleado($this);
  597.         }
  598.         return $this;
  599.     }
  600.     public function removeEmpleadoBeneficio(EmpleadoBeneficio $empleadoBeneficio): self
  601.     {
  602.         if ($this->empleadoBeneficios->removeElement($empleadoBeneficio)) {
  603.             // set the owning side to null (unless already changed)
  604.             if ($empleadoBeneficio->getEmpleado() === $this) {
  605.                 $empleadoBeneficio->setEmpleado(null);
  606.             }
  607.         }
  608.         return $this;
  609.     }
  610.     public function __toString() {
  611.         return $this->getNombre();
  612.     }
  613.     public function getMotivoLiquidacionEmpleado(): ?MotivoLiquidacionEmpleado
  614.     {
  615.         return $this->motivoLiquidacionEmpleado;
  616.     }
  617.     public function setMotivoLiquidacionEmpleado(?MotivoLiquidacionEmpleado $motivoLiquidacionEmpleado): self
  618.     {
  619.         $this->motivoLiquidacionEmpleado $motivoLiquidacionEmpleado;
  620.         return $this;
  621.     }
  622.     /**
  623.      * @return Collection<int, EmpleadoBoleta>
  624.      */
  625.     public function getEmpleadoBoletas(): Collection
  626.     {
  627.         return $this->empleadoBoletas;
  628.     }
  629.     public function addEmpleadoBoleta(EmpleadoBoleta $empleadoBoleta): self
  630.     {
  631.         if (!$this->empleadoBoletas->contains($empleadoBoleta)) {
  632.             $this->empleadoBoletas[] = $empleadoBoleta;
  633.             $empleadoBoleta->setEmpleado($this);
  634.         }
  635.         return $this;
  636.     }
  637.     public function removeEmpleadoBoleta(EmpleadoBoleta $empleadoBoleta): self
  638.     {
  639.         if ($this->empleadoBoletas->removeElement($empleadoBoleta)) {
  640.             // set the owning side to null (unless already changed)
  641.             if ($empleadoBoleta->getEmpleado() === $this) {
  642.                 $empleadoBoleta->setEmpleado(null);
  643.             }
  644.         }
  645.         return $this;
  646.     }
  647.     /**
  648.      * @return Collection<int, AcuerdoDePago>
  649.      */
  650.     public function getAcuerdoDePagos(): Collection
  651.     {
  652.         return $this->acuerdoDePagos;
  653.     }
  654.     public function addAcuerdoDePago(AcuerdoDePago $acuerdoDePago): self
  655.     {
  656.         if (!$this->acuerdoDePagos->contains($acuerdoDePago)) {
  657.             $this->acuerdoDePagos[] = $acuerdoDePago;
  658.             $acuerdoDePago->addEmpleado($this);
  659.         }
  660.         return $this;
  661.     }
  662.     public function removeAcuerdoDePago(AcuerdoDePago $acuerdoDePago): self
  663.     {
  664.         if ($this->acuerdoDePagos->removeElement($acuerdoDePago)) {
  665.             $acuerdoDePago->removeEmpleado($this);
  666.         }
  667.         return $this;
  668.     }
  669.     /**
  670.      * @return Collection|EscalaSalarial[]
  671.      */
  672.     public function getEscalaSalarialAcuerdo(): Collection
  673.     {
  674.         return $this->escalaSalarialAcuerdo;
  675.     }
  676.     public function addEscalaSalarialAcuerdo(EscalaSalarial $escalaSalarialAcuerdo): self
  677.     {
  678.         if (!$this->escalaSalarialAcuerdo->contains($escalaSalarialAcuerdo)) {
  679.             $this->escalaSalarialAcuerdo[] = $escalaSalarialAcuerdo;
  680.             $escalaSalarialAcuerdo->addEmpleado($this);
  681.         }
  682.         return $this;
  683.     }
  684.     public function removeEscalaSalarialAcuerdo(EscalaSalarial $escalaSalarialAcuerdo): self
  685.     {
  686.         if ($this->escalaSalarialAcuerdo->removeElement($escalaSalarialAcuerdo)) {
  687.             $escalaSalarialAcuerdo->removeEmpleado($this);
  688.         }
  689.         return $this;
  690.     }
  691.     /**
  692.      * Get the value of horasTrabajadasDeclaradaPorEmpleado
  693.      */ 
  694.     public function getHorasTrabajadasDeclaradaPorEmpleado()
  695.     {
  696.         return $this->horasTrabajadasDeclaradaPorEmpleado;
  697.     }
  698.     /**
  699.      * Set the value of horasTrabajadasDeclaradaPorEmpleado
  700.      *
  701.      * @return  self
  702.      */ 
  703.     public function setHorasTrabajadasDeclaradaPorEmpleado($horasTrabajadasDeclaradaPorEmpleado)
  704.     {
  705.         $this->horasTrabajadasDeclaradaPorEmpleado $horasTrabajadasDeclaradaPorEmpleado;
  706.         return $this;
  707.     }
  708.     /**
  709.      * @return Collection<int, EmpleadoRecibo>
  710.      */
  711.     public function getEmpleadoRecibos(): Collection
  712.     {
  713.         return $this->empleadoRecibos;
  714.     }
  715.     public function addEmpleadoRecibo(EmpleadoRecibo $empleadoRecibo): self
  716.     {
  717.         if (!$this->empleadoRecibos->contains($empleadoRecibo)) {
  718.             $this->empleadoRecibos->add($empleadoRecibo);
  719.             $empleadoRecibo->setEmpleado($this);
  720.         }
  721.         return $this;
  722.     }
  723.     public function removeEmpleadoRecibo(EmpleadoRecibo $empleadoRecibo): self
  724.     {
  725.         if ($this->empleadoRecibos->removeElement($empleadoRecibo)) {
  726.             // set the owning side to null (unless already changed)
  727.             if ($empleadoRecibo->getEmpleado() === $this) {
  728.                 $empleadoRecibo->setEmpleado(null);
  729.             }
  730.         }
  731.         return $this;
  732.     }
  733.     /**
  734.      * @return Collection<int, EmpleadoEmpresaSucursal>
  735.      */
  736.     public function getEmpleadoEmpresaSucursals(): Collection
  737.     {
  738.         return $this->empleadoEmpresaSucursals;
  739.     }
  740.     public function addEmpleadoEmpresaSucursal(EmpleadoEmpresaSucursal $empleadoEmpresaSucursal): self
  741.     {
  742.         if (!$this->empleadoEmpresaSucursals->contains($empleadoEmpresaSucursal)) {
  743.             $this->empleadoEmpresaSucursals->add($empleadoEmpresaSucursal);
  744.             $empleadoEmpresaSucursal->setEmpleado($this);
  745.         }
  746.         return $this;
  747.     }
  748.     public function removeEmpleadoEmpresaSucursal(EmpleadoEmpresaSucursal $empleadoEmpresaSucursal): self
  749.     {
  750.         if ($this->empleadoEmpresaSucursals->removeElement($empleadoEmpresaSucursal)) {
  751.             // set the owning side to null (unless already changed)
  752.             if ($empleadoEmpresaSucursal->getEmpleado() === $this) {
  753.                 $empleadoEmpresaSucursal->setEmpleado(null);
  754.             }
  755.         }
  756.         return $this;
  757.     }
  758.     /**
  759.      * @return Collection<int, Concepto>
  760.      */
  761.     public function getConcepto(): Collection
  762.     {
  763.         return $this->concepto;
  764.     }
  765.     public function addConcepto(Concepto $concepto): self
  766.     {
  767.         if (!$this->concepto->contains($concepto)) {
  768.             $this->concepto->add($concepto);
  769.         }
  770.         return $this;
  771.     }
  772.     public function removeConcepto(Concepto $concepto): self
  773.     {
  774.         $this->concepto->removeElement($concepto);
  775.         return $this;
  776.     }
  777.     public function getFechaAltaTemprana(): ?\DateTimeInterface
  778.     {
  779.         return $this->fechaAltaTemprana;
  780.     }
  781.     public function setFechaAltaTemprana(?\DateTimeInterface $fechaAltaTemprana): self
  782.     {
  783.         $this->fechaAltaTemprana $fechaAltaTemprana;
  784.         return $this;
  785.     }
  786. }