public function createAnswer(int $pollId, string $answer): PodiumResponse
    {
        /* @var $pollAnswerForm AnswerFormInterface */
        $pollAnswerForm = $this->getAnswerForm();

        $pollAnswerForm->setPollId($pollId);
        $pollAnswerForm->setAnswer($answer);

        return $pollAnswerForm->create();
    }
public function createAnswer(int $pollId, string $answer): PodiumResponse
    {
        /* @var $pollAnswerForm AnswerFormInterface */
        $pollAnswerForm = $this->getAnswerForm();

        $pollAnswerForm->setPollId($pollId);
        $pollAnswerForm->setAnswer($answer);

        return $pollAnswerForm->create();
    }
public function createAnswer ( int $ pollId , string $ answer ) : PodiumResponse { /* @var $pollAnswerForm AnswerFormInterface */ $ pollAnswerForm = $ this -> getAnswerForm ( ) ; $ pollAnswerForm -> setPollId ( $ pollId ) ; $ pollAnswerForm -> setAnswer ( $ answer ) ; return $ pollAnswerForm -> create ( ) ; }
Creates poll answer.
@param int $pollId
@param string $answer
@return PodiumResponse
Creates poll answer .