private function getLastAnsweredQuestion()
    {
        $configuration = $this->getUserConfiguration();
        $answer = $configuration->getAnswers()->toArray();
        end($answer);
        key($answer);

        if (empty($answer)) {
            $answer = $this->getCurrentQuestion();
        }

        $this->getSpecificQuestion($answer);
    }
private function getLastAnsweredQuestion()
    {
        $configuration = $this->getUserConfiguration();
        $answer = $configuration->getAnswers()->toArray();
        end($answer);
        key($answer);

        if (empty($answer)) {
            $answer = $this->getCurrentQuestion();
        }

        $this->getSpecificQuestion($answer);
    }
private function getLastAnsweredQuestion ( ) { $ configuration = $ this -> getUserConfiguration ( ) ; $ answer = $ configuration -> getAnswers ( ) -> toArray ( ) ; end ( $ answer ) ; key ( $ answer ) ; if ( empty ( $ answer ) ) { $ answer = $ this -> getCurrentQuestion ( ) ; } $ this -> getSpecificQuestion ( $ answer ) ; }
Get the last question answered
Get the last question answered