/** * Get a question type of question * * @param Question $question * * @return string */ public function getQuestionType(Question $question) { return $question->getQuestionType()->getTitle(); }