@@ -15,13 +15,18 @@ class QuestionAndAnswerViewDomainObject extends AbstractDomainObject
1515 private int $ question_id ;
1616 private ?int $ order_id ;
1717 private string $ title ;
18+ private bool $ question_required ;
19+ private ?string $ question_description = null ;
1820 private ?string $ first_name = null ;
1921 private ?string $ last_name = null ;
2022 private array |string $ answer ;
2123 private string $ belongs_to ;
2224 private ?int $ attendee_id = null ;
25+ private ?string $ attendee_public_id = null ;
2326 private string $ question_type ;
2427 private int $ event_id ;
28+ private int $ question_answer_id ;
29+ private ?array $ question_options = null ;
2530
2631 private ?AttendeeDomainObject $ attendee = null ;
2732
@@ -183,19 +188,86 @@ public function setQuestion(?QuestionDomainObject $question): static
183188 return $ this ;
184189 }
185190
191+ public function getQuestionAnswerId (): int
192+ {
193+ return $ this ->question_answer_id ;
194+ }
195+
196+ public function setQuestionAnswerId (int $ question_answer_id ): QuestionAndAnswerViewDomainObject
197+ {
198+ $ this ->question_answer_id = $ question_answer_id ;
199+
200+ return $ this ;
201+ }
202+
203+ public function getQuestionDescription (): ?string
204+ {
205+ return $ this ->question_description ;
206+ }
207+
208+ public function setQuestionDescription (?string $ question_description ): QuestionAndAnswerViewDomainObject
209+ {
210+ $ this ->question_description = $ question_description ;
211+
212+ return $ this ;
213+ }
214+
215+ public function getQuestionRequired (): bool
216+ {
217+ return $ this ->question_required ;
218+ }
219+
220+ public function setQuestionRequired (bool $ question_required ): QuestionAndAnswerViewDomainObject
221+ {
222+ $ this ->question_required = $ question_required ;
223+
224+ return $ this ;
225+ }
226+
227+ public function getQuestionOptions (): ?array
228+ {
229+ return $ this ->question_options ;
230+ }
231+
232+ public function setQuestionOptions (?array $ question_options ): QuestionAndAnswerViewDomainObject
233+ {
234+ $ this ->question_options = $ question_options ;
235+
236+ return $ this ;
237+ }
238+
239+ public function getAttendeePublicId (): ?string
240+ {
241+ return $ this ->attendee_public_id ;
242+ }
243+
244+ public function setAttendeePublicId (?string $ attendee_public_id ): QuestionAndAnswerViewDomainObject
245+ {
246+ $ this ->attendee_public_id = $ attendee_public_id ;
247+
248+ return $ this ;
249+ }
250+
186251 public function toArray (): array
187252 {
188253 return [
189254 'question_id ' => $ this ->question_id ?? null ,
190255 'order_id ' => $ this ->order_id ?? null ,
191256 'title ' => $ this ->title ?? null ,
257+ 'question_description ' => $ this ->question_description ?? null ,
258+ 'question_required ' => $ this ->question_required ?? null ,
192259 'last_name ' => $ this ->last_name ?? null ,
193260 'answer ' => $ this ->answer ?? null ,
194261 'belongs_to ' => $ this ->belongs_to ?? null ,
195262 'attendee_id ' => $ this ->attendee_id ?? null ,
263+ 'attendee_public_id ' => $ this ->attendee_public_id ?? null ,
196264 'question_type ' => $ this ->question_type ?? null ,
197265 'first_name ' => $ this ->first_name ?? null ,
198266 'event_id ' => $ this ->event_id ?? null ,
267+ 'product_id ' => $ this ->product_id ?? null ,
268+ 'product_title ' => $ this ->product_title ?? null ,
269+ 'question_answer_id ' => $ this ->question_answer_id ?? null ,
270+ 'question_options ' => $ this ->question_options ?? null ,
199271 ];
200272 }
201273}
0 commit comments