protected function record_attempt(){
    $this->cfg['num_attempts'] = isset($this->cfg['num_attempts']) ?
      $this->cfg['num_attempts']+1 : 1;
    $this->_set_session('num_attempts', $this->cfg['num_attempts']);
    $this->save_session();
    return $this;
  }
protected function record_attempt(){
    $this->cfg['num_attempts'] = isset($this->cfg['num_attempts']) ?
      $this->cfg['num_attempts']+1 : 1;
    $this->_set_session('num_attempts', $this->cfg['num_attempts']);
    $this->save_session();
    return $this;
  }
protected function record_attempt ( ) { $ this -> cfg [ 'num_attempts' ] = isset ( $ this -> cfg [ 'num_attempts' ] ) ? $ this -> cfg [ 'num_attempts' ] + 1 : 1 ; $ this -> _set_session ( 'num_attempts' , $ this -> cfg [ 'num_attempts' ] ) ; $ this -> save_session ( ) ; return $ this ; }
Increment the num_attempt variable
@return $this
Increment the num_attempt variable