public function getPrevQuestion()
    {
        $prevQuestionId = $this->getCurrentQuestion() - 1;

        if ($prevQuestionId < 0) {
            return $this->getQuestion();
        }

        if (!is_null($this->getUserConfiguration()->getTimeout())) {
            $this->setQuestion($prevQuestionId);
        }

        return $this->getQuestion();
    }
public function getPrevQuestion()
    {
        $prevQuestionId = $this->getCurrentQuestion() - 1;

        if ($prevQuestionId < 0) {
            return $this->getQuestion();
        }

        if (!is_null($this->getUserConfiguration()->getTimeout())) {
            $this->setQuestion($prevQuestionId);
        }

        return $this->getQuestion();
    }
public function getPrevQuestion ( ) { $ prevQuestionId = $ this -> getCurrentQuestion ( ) - 1 ; if ( $ prevQuestionId < 0 ) { return $ this -> getQuestion ( ) ; } if ( ! is_null ( $ this -> getUserConfiguration ( ) -> getTimeout ( ) ) ) { $ this -> setQuestion ( $ prevQuestionId ) ; } return $ this -> getQuestion ( ) ; }
Get the previous question

@return QuestionInterface
Get the previous question