public function EliminarCorredor(Corredor $Corredor)
 {
     $correr;
     foreach ($this->corredores as $cor) {
         if (!($cor->getDNI() == $Corredor->getDNI())) {
             $correr[] = $cor;
         }
     }
     $this->corredores = $correr;
 }
 public function ActualizarTiempoCorredorEnCarrera($tiempo, Corredor $Corredor, Carrera $Carrera)
 {
     $parti = null;
     foreach ($this->participantes as $par) {
         if ($par->getCorredor()->getDNI() == $Corredor->getDNI() && $par->getCarrera()->getId() == $Carrera->getId()) {
             $parti[] = new Participante($par->getDorsal(), $tiempo, $par->getCorredor(), $par->getCarrera());
         } else {
             $parti[] = $par;
         }
     }
 }