public function removeAnswer(int $answerId): PodiumResponse
    {
        $pollAnswerRemover = $this->getAnswerRemover($answerId);

        if ($pollAnswerRemover === null) {
            throw new ModelNotFoundException('Poll of given ID can not be found.');
        }

        return $pollAnswerRemover->remove();
    }
public function removeAnswer(int $answerId): PodiumResponse
    {
        $pollAnswerRemover = $this->getAnswerRemover($answerId);

        if ($pollAnswerRemover === null) {
            throw new ModelNotFoundException('Poll of given ID can not be found.');
        }

        return $pollAnswerRemover->remove();
    }
public function removeAnswer ( int $ answerId ) : PodiumResponse { $ pollAnswerRemover = $ this -> getAnswerRemover ( $ answerId ) ; if ( $ pollAnswerRemover === null ) { throw new ModelNotFoundException ( 'Poll of given ID can not be found.' ) ; } return $ pollAnswerRemover -> remove ( ) ; }
Deletes poll answer.
@param int $answerId
@return PodiumResponse
@throws ModelNotFoundException
Deletes poll answer .