public function __construct(Quiz $quiz, Word $answer) { $this->quest = $quiz->getQuestWord(); $this->answer = $answer->truncate($this->quest->getLength()); $this->doMatch(); }