Question
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
__construct()
Question constructor.
int
getId()
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
getQuestionSurveyAggregations()
No description
setQuestionSurveyAggregations(ArrayCollection $questionSurveyAggregations)
No description
removeQuestionSurveyAggregationForQuestionEdit(QuestionSurveyAggregation $aggregation)
No description
removeQuestionSurveyAggregationForQuestionDelete(QuestionSurveyAggregation $aggregation)
No description
Details
in TranslatableAbstract at line 37
setTranslatableLocale(string $locale)
Sets translatable locale
in TranslatableAbstract at line 47
string
getTranslatableLocale()
at line 131
__construct()
Question constructor.