DeleteService
in package
Question Aggregate Delete Service
Table of Contents
Properties
- $modelCondition : Condition
- $modelQuestion : Question
- $modelQuestionL10n : QuestionL10n
- $proxyExpressionManager : ProxyExpressionManager
Methods
- __construct() : mixed
- delete() : void
- Function responsible for deleting a question.
- deleteAnswer() : mixed
- Function responsible for deleting an answer from a question.
Properties
$modelCondition
private
Condition
$modelCondition
$modelQuestion
private
Question
$modelQuestion
$modelQuestionL10n
private
QuestionL10n
$modelQuestionL10n
$proxyExpressionManager
private
ProxyExpressionManager
$proxyExpressionManager
Methods
__construct()
public
__construct(Question $modelQuestion, QuestionL10n $modelQuestionL10n, Condition $modelCondition, ProxyExpressionManager $proxyExpressionManager) : mixed
Parameters
- $modelQuestion : Question
- $modelQuestionL10n : QuestionL10n
- $modelCondition : Condition
- $proxyExpressionManager : ProxyExpressionManager
delete()
Function responsible for deleting a question.
public
delete(int $surveyId, int $questionId) : void
Parameters
- $surveyId : int
- $questionId : int
Tags
deleteAnswer()
Function responsible for deleting an answer from a question.
public
deleteAnswer(int $answerId) : mixed
It also deletes all languages for this answer.
Parameters
- $answerId : int