class Question extends TranslatableAbstract

Class Question

Properties

protected string $locale Entity locale from TranslatableAbstract
protected int $id
protected string|null $questionType Question type
protected bool|null $isAnswered If question is answered or not
protected string|null $content Question content
protected ArrayCollection $choices Choices that belong to question
protected ArrayCollection $answers Answers that belong to question
protected ArrayCollection $questionSurveyAggregations Questions and surveys aggregation relationship

Methods

setTranslatableLocale(string $locale)

Sets translatable locale

string
getTranslatableLocale()

No description

__construct()

Question constructor.

int
getId()

No description

setId(int $id)

No description

ArrayCollection
getChoices()

No description

setChoices(ArrayCollection $choices)

No description

null|string
getQuestionType()

No description

setQuestionType(null|string $questionType)

No description

null|string
getContent()

No description

setContent(null|string $content)

No description

bool|null
isIsAnswered()

No description

setIsAnswered(bool|null $isAnswered)

No description

ArrayCollection
getAnswers()

No description

setAnswers(ArrayCollection $answers)

No description

ArrayCollection
setQuestionSurveyAggregations(ArrayCollection $questionSurveyAggregations)

No description

addChoice(Choice $choice)

No description

removeChoice(Choice $choice)

No description

addAnswer(Answer $answer)

No description

removeAnswer(Answer $answer)

No description

Details

in TranslatableAbstract at line 37
setTranslatableLocale(string $locale)

Sets translatable locale

Parameters

string $locale

in TranslatableAbstract at line 47
string getTranslatableLocale()

Return Value

string

at line 131
__construct()

Question constructor.

at line 141
int getId()

Return Value

int

at line 151
Question setId(int $id)

Parameters

int $id

Return Value

Question

at line 161
ArrayCollection getChoices()

Return Value

ArrayCollection

at line 171
Question setChoices(ArrayCollection $choices)

Parameters

ArrayCollection $choices

Return Value

Question

at line 181
null|string getQuestionType()

Return Value

null|string

at line 191
Question setQuestionType(null|string $questionType)

Parameters

null|string $questionType

Return Value

Question

at line 201
null|string getContent()

Return Value

null|string

at line 211
Question setContent(null|string $content)

Parameters

null|string $content

Return Value

Question

at line 222
bool|null isIsAnswered()

Return Value

bool|null

at line 232
Question setIsAnswered(bool|null $isAnswered)

Parameters

bool|null $isAnswered

Return Value

Question

at line 242
ArrayCollection getAnswers()

Return Value

ArrayCollection

at line 252
Question setAnswers(ArrayCollection $answers)

Parameters

ArrayCollection $answers

Return Value

Question

at line 262
ArrayCollection getQuestionSurveyAggregations()

Return Value

ArrayCollection

at line 272
Question setQuestionSurveyAggregations(ArrayCollection $questionSurveyAggregations)

Parameters

ArrayCollection $questionSurveyAggregations

Return Value

Question

at line 284
Question addChoice(Choice $choice)

Parameters

Choice $choice

Return Value

Question

at line 297
Question removeChoice(Choice $choice)

Parameters

Choice $choice

Return Value

Question

at line 309
Question addAnswer(Answer $answer)

Parameters

Answer $answer

Return Value

Question

at line 322
Question removeAnswer(Answer $answer)

Parameters

Answer $answer

Return Value

Question

at line 334
Question addQuestionSurveyAggregation(QuestionSurveyAggregation $aggregation)

Parameters

QuestionSurveyAggregation $aggregation

Return Value

Question

at line 354
Question addQuestionSurveyAggregationForSurveySave(QuestionSurveyAggregation $aggregation)

Parameters

QuestionSurveyAggregation $aggregation

Return Value

Question

at line 366
Question removeQuestionSurveyAggregation(QuestionSurveyAggregation $aggregation)

Parameters

QuestionSurveyAggregation $aggregation

Return Value

Question

at line 380
Question removeQuestionSurveyAggregationForQuestionEdit(QuestionSurveyAggregation $aggregation)

Parameters

QuestionSurveyAggregation $aggregation

Return Value

Question

at line 392
Question removeQuestionSurveyAggregationForQuestionDelete(QuestionSurveyAggregation $aggregation)

Parameters

QuestionSurveyAggregation $aggregation

Return Value

Question