public function getNextQuestion()
    {
        $nextQuestionId = $this->getCurrentQuestion() + 1;
        $questions = $this->getUserConfiguration()->getQuestions();

        if (!isset($questions[$nextQuestionId])) {
            return false;
        }

        $this->setQuestion($nextQuestionId);

        return $this->getQuestion();
    }
public function getNextQuestion()
    {
        $nextQuestionId = $this->getCurrentQuestion() + 1;
        $questions = $this->getUserConfiguration()->getQuestions();

        if (!isset($questions[$nextQuestionId])) {
            return false;
        }

        $this->setQuestion($nextQuestionId);

        return $this->getQuestion();
    }
public function getNextQuestion ( ) { $ nextQuestionId = $ this -> getCurrentQuestion ( ) + 1 ; $ questions = $ this -> getUserConfiguration ( ) -> getQuestions ( ) ; if ( ! isset ( $ questions [ $ nextQuestionId ] ) ) { return false ; } $ this -> setQuestion ( $ nextQuestionId ) ; return $ this -> getQuestion ( ) ; }
Set the next question

@return false|QuestionInterface
Set the next question