protected function addAnswersFields(FormInterface $form)
    {
        $question = $this->questionInteract->getQuestion();
        $data = $this->getQuestionData();

        /** @var AnswerCheckerInterface $checker */
        $checker = $this->checkerLocator->get($question->getType());
        $options = $checker->getOptions($question->getAnswers()->getValues(), $data);
        $form->add('answers', $checker->getType(), $options);
    }
protected function addAnswersFields(FormInterface $form)
    {
        $question = $this->questionInteract->getQuestion();
        $data = $this->getQuestionData();

        /** @var AnswerCheckerInterface $checker */
        $checker = $this->checkerLocator->get($question->getType());
        $options = $checker->getOptions($question->getAnswers()->getValues(), $data);
        $form->add('answers', $checker->getType(), $options);
    }
protected function addAnswersFields ( FormInterface $ form ) { $ question = $ this -> questionInteract -> getQuestion ( ) ; $ data = $ this -> getQuestionData ( ) ; /** @var AnswerCheckerInterface $checker */ $ checker = $ this -> checkerLocator -> get ( $ question -> getType ( ) ) ; $ options = $ checker -> getOptions ( $ question -> getAnswers ( ) -> getValues ( ) , $ data ) ; $ form -> add ( 'answers' , $ checker -> getType ( ) , $ options ) ; }
Add answers fields

@param FormInterface $form
Add answers fields