src/Entity/ReclutaProceso.php line 448

Open in your IDE?
  1. <?php
  2. namespace App\Entity;
  3. use Doctrine\ORM\Mapping as ORM;
  4. use App\Entity\RegionProvinciaCantonParroquia;
  5. //use TrazasBundle\Interfaces\trazaInterface;
  6. use App\Enum\CausaNoIdoneoEnum;
  7. /**
  8.  * ReclutaProceso
  9.  *
  10.  * @ORM\Table(name="recluta_proceso")
  11.  * @ORM\Entity(repositoryClass="App\Repository\ReclutaProcesoRepository")
  12.  */
  13. class ReclutaProceso extends RegionProvinciaCantonParroquia //implements trazaInterface
  14. {
  15.     /**
  16.      * @var integer
  17.      *
  18.      * @ORM\Column(name="id", type="integer", nullable=false)
  19.      * @ORM\Id
  20.      * @ORM\GeneratedValue(strategy="SEQUENCE")
  21.      * @ORM\SequenceGenerator(sequenceName="recluta_proceso_id_seq", allocationSize=1, initialValue=1)
  22.      */
  23.     private $id;
  24.     /**
  25.      * @var \App\Entity\ProcesoReclutamiento
  26.      *
  27.      * @ORM\ManyToOne(targetEntity="App\Entity\ProcesoReclutamiento")
  28.      * @ORM\JoinColumns({
  29.      *   @ORM\JoinColumn(name="proceso", referencedColumnName="id", nullable=false)
  30.      * })
  31.      */
  32.     private $procesoReclutamiento;
  33.     
  34.     /**
  35.      * @var \App\Entity\BaseMovilizacion
  36.      *
  37.      * @ORM\ManyToOne(targetEntity="App\Entity\BaseMovilizacion")
  38.      * @ORM\JoinColumns({
  39.      *   @ORM\JoinColumn(name="base_movilizacion", referencedColumnName="id", nullable=false, columnDefinition="relation/centromovilizacion")
  40.      * })
  41.      */
  42.     private $baseMovilizacion;
  43.     /**
  44.      * @var \App\Entity\CentroMovilizacion
  45.      *
  46.      * @ORM\ManyToOne(targetEntity="App\Entity\CentroMovilizacion")
  47.      * @ORM\JoinColumns({
  48.      *   @ORM\JoinColumn(name="centro_movilizacion", referencedColumnName="id", nullable=false, columnDefinition="relation/centromovilizacion")
  49.      * })
  50.      */
  51.     private $centroMovilizacion;
  52.     /**
  53.      * @var \App\Entity\UnidadMilitar
  54.      *
  55.      * @ORM\ManyToOne(targetEntity="App\Entity\UnidadMilitar")
  56.      * @ORM\JoinColumns({
  57.      *   @ORM\JoinColumn(name="unidad_militar", referencedColumnName="id", nullable=true)
  58.      * })
  59.      */
  60.     private $unidadMilitar;
  61.     
  62.     /**
  63.      * @var \App\Entity\Recluta
  64.      *
  65.      * @ORM\ManyToOne(targetEntity="App\Entity\Recluta", inversedBy="procesos", fetch="EXTRA_LAZY")
  66.      * @ORM\OrderBy({"apellidoPaterno" = "ASC","apellidoMaterno" = "ASC","nombres" = "ASC"})
  67.      * @ORM\JoinColumns({
  68.      *   @ORM\JoinColumn(name="recluta", referencedColumnName="id", nullable=false)
  69.      * })
  70.      */
  71.     private $recluta;
  72.     
  73.     /**
  74.      * @var \DateTime
  75.      *
  76.      * @ORM\Column(name="fecha_registro", type="datetime", nullable=false, columnDefinition = "fecha")
  77.      */
  78.     private $fechaRegistro;
  79.         
  80.     
  81.     /**
  82.      * @var string
  83.      *
  84.      * @ORM\Column(name="pais_residencia", type="string", length=50, nullable=true)
  85.      */
  86.     private $paisResidencia;
  87.     
  88.     /**
  89.      * @var \App\Entity\NmclDominioLocalizacion
  90.      *
  91.      * @ORM\ManyToOne(targetEntity="App\Entity\NmclDominioLocalizacion")
  92.      * @ORM\JoinColumns({
  93.      *   @ORM\JoinColumn(name="localizacion_residencia", referencedColumnName="id", nullable=true)
  94.      * })
  95.      */
  96.     private $lugarResidencia;
  97.     
  98.     /**
  99.      * @var string
  100.      *
  101.      * @ORM\Column(name="calle_principal_residencia", type="string", length=50, nullable=true)
  102.      */
  103.     private $callePrincipalResidencia;
  104.     
  105.     /**
  106.      * @var string
  107.      *
  108.      * @ORM\Column(name="calle_secundaria_residencia", type="string", length=50, nullable=true)
  109.      */
  110.     private $calleSecundariaResidencia;
  111.     
  112.     /**
  113.      * @var string
  114.      *
  115.      * @ORM\Column(name="num_casa", type="string", length=10, nullable=true)
  116.      */
  117.     private $numeroCasa;
  118.     
  119.     /**
  120.      * @var string
  121.      *
  122.      * @ORM\Column(name="referencias", type="text", nullable=true)
  123.      */
  124.     private $referencias;
  125.     
  126.     /**
  127.      * @var string
  128.      *
  129.      * @ORM\Column(name="geometria", type="text", nullable=true, columnDefinition="geometria_punto")
  130.      */
  131.     private $geometria;
  132.     /**
  133.      * @var \DateTime
  134.      *
  135.      * @ORM\Column(name="fecha_consulta_antecedentes", type="datetime", nullable=true, columnDefinition = "fecha")
  136.      */
  137.     private $fechaConsultaAntecedentes;
  138.     /**
  139.      * @var string
  140.      *
  141.      * @ORM\Column(name="resultados_antecedentes", type="text", nullable=true)
  142.      */
  143.     private $resultadosAntecedentes;
  144.     
  145.     /**
  146.      * @var \DateTime
  147.      *
  148.      * @ORM\Column(name="fecha_consulta_estudios", type="datetime", nullable=true, columnDefinition = "fecha")
  149.      */
  150.     private $fechaConsultaEstudios;
  151.     /**
  152.      * @var string
  153.      *
  154.      * @ORM\Column(name="resultados_estudios", type="text", nullable=true)
  155.      */
  156.     private $resultadosEstudios;
  157.     
  158.     /**
  159.      * @var boolean
  160.      *
  161.      * @ORM\Column(name="idoneo", type="boolean", nullable=true)
  162.      */
  163.     private $idoneo;
  164.     
  165.     /**
  166.      * @var \DateTime
  167.      *
  168.      * @ORM\Column(name="fecha_resultado", type="datetime", nullable=true, columnDefinition = "fecha")
  169.      */
  170.     private $fechaResultado;
  171.     /**
  172.      * @var \DateTime
  173.      *
  174.      * @ORM\Column(name="fecha_asignacion", type="datetime", nullable=true)
  175.      */
  176.     private $fechaAsignacion;
  177.     /**
  178.      * @var string
  179.      *
  180.      * @ORM\Column(name="causa_rechazo", type="string", length=15, nullable=true)
  181.      */
  182.     private $causaRechazo;
  183.     
  184.     /**
  185.      * @var string
  186.      *
  187.      * @ORM\Column(name="observaciones", type="text", nullable=true)
  188.      */
  189.     private $observaciones;
  190.     
  191.     /**
  192.      * @var string
  193.      *
  194.      * @ORM\Column(name="volver_presentarse", type="string", length=20, nullable=true)
  195.      */
  196.     private $volverPresentarse;
  197.     
  198.     /**
  199.      * @var integer
  200.      *
  201.      * @ORM\Column(name="intentos", type="integer", nullable=true)
  202.      */
  203.     private $intentos;
  204.     
  205.     /**
  206.      * @var \DateTime
  207.      *
  208.      * @ORM\Column(name="fecha_intento1", type="datetime", nullable=true)
  209.      */
  210.     private $fechaIntento1;
  211.     /**
  212.      * @var \DateTime
  213.      *
  214.      * @ORM\Column(name="fecha_intento2", type="datetime", nullable=true)
  215.      */
  216.     private $fechaIntento2;
  217.     /**
  218.      * @var \DateTime
  219.      *
  220.      * @ORM\Column(name="fecha_intento3", type="datetime", nullable=true)
  221.      */
  222.     private $fechaIntento3;
  223.     /**
  224.      * @var integer
  225.      *
  226.      * @ORM\Column(name="turno", type="integer", nullable=true)
  227.      */
  228.     private $turno;
  229.     
  230.     /**
  231.      * @var \DateTime
  232.      *
  233.      * @ORM\Column(name="fecha_baja", type="datetime", nullable=true, columnDefinition = "fecha")
  234.      */
  235.     private $fechaBaja;
  236.     
  237.     /**
  238.      * @var \App\Entity\UnidadMilitar
  239.      *
  240.      * @ORM\ManyToOne(targetEntity="App\Entity\UnidadMilitar")
  241.      * @ORM\JoinColumns({
  242.      *   @ORM\JoinColumn(name="unidad_militar_inicial", referencedColumnName="id", nullable=true)
  243.      * })
  244.      */
  245.     private $unidadMilitarInicial;
  246.     
  247.     /**
  248.      * @var boolean
  249.      *
  250.      * @ORM\Column(name="certificado_vacunacion_ok", type="boolean", nullable=true)
  251.      */
  252.     private $certificadoVacunacionOk;
  253.     
  254.     /**
  255.      * @var string
  256.      *
  257.      * @ORM\Column(name="talla_uniforme", type="string", length=5, nullable=true)
  258.      */
  259.     private $tallaUniforme;
  260.     
  261.     /**
  262.      * @var string
  263.      *
  264.      * @ORM\Column(name="talla_jockey", type="string", length=5, nullable=true)
  265.      */
  266.     private $tallaJockey;
  267.     
  268.     /**
  269.      * @var string
  270.      *
  271.      * @ORM\Column(name="talla_calzado", type="string", length=5, nullable=true)
  272.      */
  273.     private $tallaCalzado;
  274.     
  275.     /**
  276.      * @var string
  277.      *
  278.      * @ORM\Column(name="talla_camiseta", type="string", length=5, nullable=true)
  279.      */
  280.     private $tallaCamiseta;
  281.     
  282.     /**
  283.      * @var string
  284.      *
  285.      * @ORM\Column(name="estudio", type="string", length=5, nullable=true)
  286.      */
  287.     private $estudio;
  288.     
  289.     /**
  290.      * @ORM\ManyToMany(targetEntity="App\Entity\Curso")
  291.      * @ORM\JoinTable(name="recluta_proceso_cursos",
  292.      *   joinColumns={@ORM\JoinColumn(name="recluta_proceso", referencedColumnName="id", nullable=false)},
  293.      *   inverseJoinColumns={@ORM\JoinColumn(name="curso", referencedColumnName="id")}
  294.      * )
  295.      */
  296.     private $cursos;  
  297.     
  298.     
  299.     /**
  300.      * Get id
  301.      *
  302.      * @return integer 
  303.      */
  304.     public function getId()
  305.     {
  306.         return $this->id;
  307.     }
  308.     /**
  309.      * Set fechaRegistro
  310.      *
  311.      * @param \DateTime $fechaRegistro
  312.      * @return ReclutaProceso
  313.      */
  314.     public function setFechaRegistro($fechaRegistro)
  315.     {
  316.         $this->fechaRegistro $fechaRegistro;
  317.     
  318.         return $this;
  319.     }
  320.     /**
  321.      * Get fechaRegistro
  322.      *
  323.      * @return \DateTime 
  324.      */
  325.     public function getFechaRegistro()
  326.     {
  327.         return $this->fechaRegistro;
  328.     }
  329.     public function getImagen()
  330.     {
  331.         if ($this->getFoto())
  332.             return '<ul class="ace-thumbnails clearfix">'.
  333.                    '   <li>'.
  334.                    '      <a href="'.$this->getFoto()->getUrl().'" data-rel="colorbox">'.
  335.                    '         <img width="45" src="'.$this->getFoto()->getUrl().'">'.
  336.                    '      </a>'.
  337.                    '   </li>'.
  338.                    '</ul>';
  339.         else
  340.             return '<ul class="ace-thumbnails clearfix">'.
  341.                    '   <li>'.
  342.                    '      <a href="/images/foto_hombre.jpg" data-rel="colorbox">'.
  343.                    '         <img width="45" src="/images/foto_hombre.jpg">'.
  344.                    '      </a>'.
  345.                    '   </li>'.
  346.                    '</ul>';
  347.     }
  348.     public function __toString() {
  349.         return $this->getRecluta()->getNombreCompleto();
  350.     }
  351.     
  352.     public function setValuesAfterForm($params)
  353.     {
  354.         if ($params['accion']=='CREATE')
  355.         {
  356.             $this->fechaRegistro = new \DateTime();    
  357.         }
  358.     }      
  359.     
  360.     public function getRecluta() {
  361.         return $this->recluta;
  362.     }
  363.     public function getReclutaNombre() {
  364.         return $this->recluta;
  365.     }
  366.     public function getReclutaSexo() {
  367.         $recluta $this->recluta;
  368.         return $recluta->getSexo();
  369.     }
  370.     public function getReclutaFechaNacimiento() {
  371.         $recluta $this->recluta;
  372.         return $recluta->getFechaNacimiento();
  373.     }
  374.     public function getReclutaEdad() {
  375.         $recluta $this->recluta;
  376.         return $recluta->getEdad();
  377.     }
  378.     public function getReclutaIdentificacion() {
  379.         $recluta $this->recluta;
  380.         return $recluta->getIdentificacion();
  381.     }
  382.     public function getProcesoReclutamiento() {
  383.         return $this->procesoReclutamiento;
  384.     }
  385.     public function getProcesoTexto() {
  386.         $proceso $this->procesoReclutamiento;
  387.         return $proceso->__toString();
  388.     }
  389.     
  390.     public function getPaisResidencia() {
  391.         return $this->paisResidencia;
  392.     }
  393.     public function getLugarResidencia() {
  394.         return $this->lugarResidencia;
  395.     }
  396.     public function getCallePrincipalResidencia() {
  397.         return $this->callePrincipalResidencia;
  398.     }
  399.     public function getCalleSecundariaResidencia() {
  400.         return $this->calleSecundariaResidencia;
  401.     }
  402.     public function getNumeroCasa() {
  403.         return $this->numeroCasa;
  404.     }
  405.     public function getReferencias() {
  406.         return $this->referencias;
  407.     }
  408.     public function getGeometria() {
  409.         return $this->geometria;
  410.     }
  411.     public function getFechaConsultaAntecedentes() {
  412.         return $this->fechaConsultaAntecedentes;
  413.     }
  414.     public function getResultadosAntecedentes() {
  415.         return json_decode($this->resultadosAntecedentes);
  416.     }
  417.     public function getFechaConsultaEstudios() {
  418.         return $this->fechaConsultaEstudios;
  419.     }
  420.     public function getResultadosEstudios() {
  421.         return json_decode($this->resultadosEstudios);
  422.     }
  423.     public function getIdoneo() {
  424.         return $this->idoneo;
  425.     }
  426.     public function getCentroInstruccion() {
  427.         if ($this->unidadMilitar)
  428.         {
  429.             return $this->unidadMilitar->getCentroInstruccion()->__toString();
  430.         }
  431.         return '';
  432.     }
  433.     public function getFechaResultado() {
  434.         return $this->fechaResultado;
  435.     }
  436.     public function getUnidadMilitar() {
  437.         return $this->unidadMilitar;
  438.     }
  439.     public function getFechaAsignacion() {
  440.         return $this->fechaAsignacion;
  441.     }
  442.     public function getCausaRechazo() {
  443.         return $this->causaRechazo;
  444.     }
  445.     public function getCausaRechazoTexto() {
  446.         return CausaNoIdoneoEnum::getReadableFor($this->causaRechazo);
  447.     }
  448.     public function getVolverPresentarse() {
  449.         return $this->volverPresentarse;
  450.     }
  451.     public function setRecluta(\App\Entity\Recluta $recluta) {
  452.         $this->recluta $recluta;
  453.     }
  454.     public function setProcesoReclutamiento(\App\Entity\ProcesoReclutamiento $procesoReclutamiento) {
  455.         $this->procesoReclutamiento $procesoReclutamiento;
  456.     }
  457.     public function setPaisResidencia($paisResidencia) {
  458.         $this->paisResidencia $paisResidencia;
  459.     }
  460.     public function setLugarResidencia(\App\Entity\NmclDominioLocalizacion $lugarResidencia) {
  461.         $this->lugarResidencia $lugarResidencia;
  462.     }
  463.     public function setCallePrincipalResidencia($callePrincipalResidencia) {
  464.         $this->callePrincipalResidencia $callePrincipalResidencia;
  465.     }
  466.     public function setCalleSecundariaResidencia($calleSecundariaResidencia) {
  467.         $this->calleSecundariaResidencia $calleSecundariaResidencia;
  468.     }
  469.     public function setNumeroCasa($numeroCasa) {
  470.         $this->numeroCasa $numeroCasa;
  471.     }
  472.     public function setReferencias($referencias) {
  473.         $this->referencias $referencias;
  474.     }
  475.     public function setGeometria($geometria) {
  476.         $this->geometria $geometria;
  477.     }
  478.     public function setFechaConsultaAntecedentes(\DateTime $fechaConsultaAntecedentes) {
  479.         $this->fechaConsultaAntecedentes $fechaConsultaAntecedentes;
  480.     }
  481.     public function setResultadosAntecedentes($resultadosAntecedentes) {
  482.         $this->resultadosAntecedentes $resultadosAntecedentes;
  483.     }
  484.     public function setFechaConsultaEstudios(\DateTime $fechaConsultaEstudios) {
  485.         $this->fechaConsultaEstudios $fechaConsultaEstudios;
  486.     }
  487.     public function setResultadosEstudios($resultadosEstudios) {
  488.         $this->resultadosEstudios $resultadosEstudios;
  489.     }
  490.     public function setIdoneo($idoneo) {
  491.         $this->idoneo $idoneo;
  492.     }
  493.     public function setFechaResultado(\DateTime $fechaResultado=null) {
  494.         $this->fechaResultado $fechaResultado;
  495.     }
  496.     public function setUnidadMilitar(\App\Entity\UnidadMilitar $unidadMilitar=null) {
  497.         $this->unidadMilitar $unidadMilitar;
  498.     }
  499.     public function setFechaAsignacion(\DateTime $fechaAsignacion) {
  500.         $this->fechaAsignacion $fechaAsignacion;
  501.     }
  502.     public function setCausaRechazo($causaRechazo=null) {
  503.         $this->causaRechazo $causaRechazo;
  504.     }
  505.     public function setVolverPresentarse($volverPresentarse=null) {
  506.         $this->volverPresentarse $volverPresentarse;
  507.     }
  508.     public static function getParamsForIndexTwig(array $params)
  509.     {
  510.         $paramsView parent::getParamsForIndexTwig($params);
  511.         $paramsView['parroquiaField']='lugarResidencia';
  512.         $paramsView['control_base']='form_reclutaBase';
  513.         $paramsView['control_centro']='form_centroMovilizacion';
  514.         $paramsView['control_unidad']='form_unidadMilitar';
  515.         return $paramsView;
  516.     }
  517.     
  518.     public function editParamsForTwig(array $params)
  519.     {
  520.        return array('parroquiaField'=>'lugarResidencia');
  521.     }
  522.     
  523.     public function newParamsForTwig(array $params)
  524.     {
  525.        return array('parroquiaField'=>'lugarResidencia');
  526.     }
  527.     
  528.     public function getCentroMovilizacion() {
  529.         return $this->centroMovilizacion;
  530.     }
  531.     public function setCentroMovilizacion(\App\Entity\CentroMovilizacion $centroMovilizacion) {
  532.         $this->centroMovilizacion $centroMovilizacion;
  533.     }
  534.     public function getIntentos() {
  535.         return $this->intentos;
  536.     }
  537.     public function getFechaIntento1() {
  538.         return $this->fechaIntento1;
  539.     }
  540.     public function getFechaIntento2() {
  541.         return $this->fechaIntento2;
  542.     }
  543.     public function getFechaIntento3() {
  544.         return $this->fechaIntento3;
  545.     }
  546.     public function getRegion()
  547.     {
  548.         $provincia $this->getProvincia();
  549.         if ($provincia)
  550.         {
  551.             return $provincia->getDominioPadre();
  552.         }
  553.         return null;
  554.     }
  555.     public function getProvincia()
  556.     {
  557.         $canton $this->getCanton();
  558.         if ($canton)
  559.         {
  560.             return $canton->getDominioPadre();
  561.         }
  562.         return null;
  563.     }
  564.     public function getCanton()
  565.     {
  566.         $parroquia $this->getLugarResidencia();
  567.         if ($parroquia)
  568.         {
  569.             return $parroquia->getDominioPadre();
  570.         }
  571.         return null;
  572.     }
  573.     
  574.     public function setIntentos($intentos=0) {
  575.         $this->intentos $intentos;
  576.     }
  577.     public function setFechaIntento1(\DateTime $fechaIntento1=null) {
  578.         $this->fechaIntento1 $fechaIntento1;
  579.     }
  580.     public function setFechaIntento2(\DateTime $fechaIntento2=null) {
  581.         $this->fechaIntento2 $fechaIntento2;
  582.     }
  583.     public function setFechaIntento3(\DateTime $fechaIntento3=null) {
  584.         $this->fechaIntento3 $fechaIntento3;
  585.     }
  586.     public function getObservaciones() {
  587.         return $this->observaciones;
  588.     }
  589.     public function setObservaciones($observaciones) {
  590.         $this->observaciones $observaciones;
  591.     }
  592.     public function getTurno() {
  593.         return $this->turno;
  594.     }
  595.     public function setTurno($turno) {
  596.         $this->turno $turno;
  597.     }
  598.     public function getParamsForShowTwig(array $params)
  599.     {   
  600.         $paramsView parent::getParamsForIndexTwig($params);
  601.         $centroId $this->getCentroMovilizacion()->getId();
  602.         $procesoId $this->getProcesoReclutamiento()->getId();
  603.         
  604.         $procesoReclutamientoCentro $params['em']->getRepository('App\\Entity\\ProcesoReclutamientoCentro')->findOneBy(array('proceso'=>$procesoId'lugar'=>$centroId));
  605.                 
  606.         $paramsView['procesoCentro'] = $procesoReclutamientoCentro;
  607.         return $paramsView;
  608.     }
  609.     public function getFuerza() {
  610.         if ($this->unidadMilitar)
  611.             return $this->unidadMilitar->getFuerza();
  612.         else
  613.             return '';
  614.     }
  615.     public function getUnidadMilitarInicial() {
  616.         return $this->unidadMilitarInicial;
  617.     }
  618.     
  619.     public function setUnidadMilitarInicial(\App\Entity\UnidadMilitar $unidadMilitar=null) {
  620.         $this->unidadMilitarInicial $unidadMilitar;
  621.     }
  622.     public function getFechaBaja() {
  623.         return $this->fechaBaja;
  624.     }
  625.     public function setFechaBaja(\DateTime $fechaBaja=null) {
  626.         $this->fechaBaja $fechaBaja;
  627.     }
  628.     public function getUnidadAsignada() {
  629.         return ($this->unidadMilitar $this->unidadMilitar $this->unidadMilitarInicial);
  630.     }
  631.     
  632.     public function getBajaVoluntaria() {
  633.         return ($this->unidadMilitar '' 'BAJA');
  634.     }
  635.     public static function getEntidadName()
  636.     {
  637.         return 'Recluta participante';
  638.     }     
  639.     
  640.     public function dateToTxt($field)
  641.     {
  642.         $date $this->$field;
  643.         if($this->$field){
  644.             $diaSemana = ['Domingo''Lunes''Martes''Miércoles''Jueves''Viernes''Sábado'];
  645.             $diaSemana $diaSemana[$date->format('w')];
  646.             $mes = ['Enero''Febrero''Marzo''Abril''Mayo''Junio''Julio''Agosto''Septiembre''Octubre''Noviembre''Diciembre'];
  647.             $mes $mes[$date->format('n')-1];
  648.             return $diaSemana.' '.date_format($date,'d').' de '.$mes.' del '.date_format($date,'Y');
  649.         }else{
  650.             return 'NO DEFINIDO';
  651.         }
  652.     }
  653.     
  654.     public function getCertificadoVacunacionOk() {
  655.         return $this->certificadoVacunacionOk;
  656.     }
  657.     public function setCertificadoVacunacionOk($certificadoVacunacionOk) {
  658.         $this->certificadoVacunacionOk $certificadoVacunacionOk;
  659.     }
  660.     public function getBaseMovilizacion() {
  661.         return $this->baseMovilizacion;
  662.     }
  663.     public function setBaseMovilizacion(\App\Entity\BaseMovilizacion $baseMovilizacion=null) {
  664.         $this->baseMovilizacion $baseMovilizacion;
  665.     }
  666.     
  667.     public function getTallaUniforme(): ?string {
  668.         return $this->tallaUniforme;
  669.     }
  670.     public function getTallaJockey(): ?string {
  671.         return $this->tallaJockey;
  672.     }
  673.     public function getTallaCalzado(): ?string {
  674.         return $this->tallaCalzado;
  675.     }
  676.     public function getTallaCamiseta(): ?string {
  677.         return $this->tallaCamiseta;
  678.     }
  679.     public function getEstudio(): ?string {
  680.         return $this->estudio;
  681.     }
  682.     public function getEstudioStr(): ?string {
  683.         $s '';
  684.         switch ($this->estudio)
  685.         {
  686.             case 'P2':
  687.                 $s 'Segundo de primaria';
  688.                 break;
  689.             case 'P3':
  690.                 $s 'Tercero de primaria';
  691.                 break;
  692.             case 'P4':
  693.                 $s 'Cuarto de primaria';
  694.                 break;
  695.             case 'P5':
  696.                 $s 'Quinto de primaria';
  697.                 break;
  698.             case 'P6':
  699.                 $s 'Sexto de primaria';
  700.                 break;
  701.             case 'P7':
  702.                 $s 'Septimo de primaria';
  703.                 break;
  704.             case 'PF':
  705.                 $s 'Primaria finalizada';
  706.                 break;
  707.             case 'S8':
  708.                 $s 'Octavoo de secundaria';
  709.                 break;
  710.             case 'S9':
  711.                 $s 'Noveno de secundaria';
  712.                 break;
  713.             case 'S10':
  714.                 $s 'Décimo de secundaria';
  715.                 break;
  716.             case 'B1':
  717.                 $s 'Primero de bachillerato';
  718.                 break;
  719.             case 'B2':
  720.                 $s 'Segundo de bachillerato';
  721.                 break;
  722.             case 'B3':
  723.                 $s 'Tercero de bachillerato';
  724.                 break;
  725.             case 'SF':
  726.                 $s 'Secundaria finalizada';
  727.                 break;
  728.         }
  729.         
  730.         return $s;
  731.     }
  732.     
  733.     public function setTallaUniforme(string $tallaUniforme): void {
  734.         $this->tallaUniforme $tallaUniforme;
  735.     }
  736.     public function setTallaJockey(string $tallaJockey): void {
  737.         $this->tallaJockey $tallaJockey;
  738.     }
  739.     public function setTallaCalzado(string $tallaCalzado): void {
  740.         $this->tallaCalzado $tallaCalzado;
  741.     }
  742.     public function setTallaCamiseta(string $tallaCamiseta): void {
  743.         $this->tallaCamiseta $tallaCamiseta;
  744.     }
  745.     public function setEstudio(string $estudio): void {
  746.         $this->estudio $estudio;
  747.     }
  748.     
  749.     /**
  750.      * Add cursos
  751.      *
  752.      * @param \App\Entity\Curso $curso
  753.      * @return ProcesoReclutamiento
  754.      */
  755.     public function addCursos(\App\Entity\Curso $curso)
  756.     {
  757.         $this->cursos->add($curso);
  758.         return $this;
  759.     }
  760.     /**
  761.      * Remove cursos
  762.      *
  763.      * @param \App\Entity\Curso $curso
  764.      */
  765.     public function removeCursos(\App\Entity\Curso $curso)
  766.     {
  767.         $this->cursos->removeElement($curso);
  768.     }
  769.     /**
  770.      * Get cursos
  771.      *
  772.      * @return \Doctrine\Common\Collections\Collection
  773.      */
  774.     public function getCursos()
  775.     {
  776.         return $this->cursos;
  777.     }
  778.     
  779.     public function getCursosStr()
  780.     {
  781.         $cursos = [];
  782.         foreach ($this->cursos as $curso)
  783.         {
  784.             $cursos[] = $curso->__toString(); 
  785.         }
  786.         return implode('<br>'$cursos);
  787.     }
  788.     
  789. }