Survey
class Survey extends TranslatableAbstract implements BlockEntity
Class Survey
Properties
| protected string | $locale | Entity locale | from TranslatableAbstract |
| protected int | $id | ||
| protected string | $title | Survey title | |
| protected string | $description | Survey description | |
| protected DateTime|null | $startDate | Survey start date | |
| protected DateTime|null | $endDate | Survey end date | |
| protected DateTime|null | $createdAt | Survey created at | |
| protected int|null | $numberOfAnswers | Number of answers | |
| protected ArrayCollection | $questionSurveyAggregations | Question survey aggregation reference | |
| protected SurveyCategory | $category | Survey category | |
| protected ArrayCollection | $answers | Survey answers collection |
Methods
__construct()
Survey constructor.
int
getId()
No description
string
getTitle()
No description
string
getDescription()
No description
setDescription(string $description)
No description
DateTime|null
getStartDate()
No description
DateTime|null
getEndDate()
No description
DateTime|null
getCreatedAt()
No description
getCategory()
No description
bool|null
isStatus()
No description
ArrayCollection
getQuestionSurveyAggregations()
No description
setQuestionSurveyAggregations(ArrayCollection $questionSurveyAggregations)
No description
ArrayCollection
getAnswers()
No description
setAnswers(ArrayCollection $answers)
No description
int|null
getNumberOfAnswers()
No description
bool|null
isFeatured()
No description
setFeatured(bool|null $featured)
No description
setNumberOfAnswers(int|null $numberOfAnswers)
No description
bool|null
isAnonymous()
No description
setAnonymous(bool|null $anonymous)
No description
$this
$this
Details
in TranslatableAbstract at line 37
setTranslatableLocale(string $locale)
Sets translatable locale
in TranslatableAbstract at line 47
string
getTranslatableLocale()
at line 210
__construct()
Survey constructor.