/** * (non-PHPdoc) * @see \Exam\Form\Element\Question\MultipleChoice::setAnswers() */ public function setAnswers($answers) { parent::setAnswers($answers); foreach ($this->answers as &$answer) { $answer = strtolower($answer); } }
/** * Set options for an element. Accepted options are: * - label: label to associate with the element * - label_attributes: attributes to use when the label is rendered * * @param array|\Traversable $options * @return YesNo|ElementInterface * @throws InvalidArgumentException */ public function setOptions($options) { parent::setOptions($options); return $this; }