public function getValidator(QuestionType $type) { return $this->validators[$type->getValue()]; }
/** * @param QuestionType $type */ public function setType(QuestionType $type) { $this->type = $type->getValue(); }