@@ -15,13 +15,18 @@ class QuestionAndAnswerViewDomainObject extends AbstractDomainObject
15
15
private int $ question_id ;
16
16
private ?int $ order_id ;
17
17
private string $ title ;
18
+ private bool $ question_required ;
19
+ private ?string $ question_description = null ;
18
20
private ?string $ first_name = null ;
19
21
private ?string $ last_name = null ;
20
22
private array |string $ answer ;
21
23
private string $ belongs_to ;
22
24
private ?int $ attendee_id = null ;
25
+ private ?string $ attendee_public_id = null ;
23
26
private string $ question_type ;
24
27
private int $ event_id ;
28
+ private int $ question_answer_id ;
29
+ private ?array $ question_options = null ;
25
30
26
31
private ?AttendeeDomainObject $ attendee = null ;
27
32
@@ -183,19 +188,86 @@ public function setQuestion(?QuestionDomainObject $question): static
183
188
return $ this ;
184
189
}
185
190
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
+
186
251
public function toArray (): array
187
252
{
188
253
return [
189
254
'question_id ' => $ this ->question_id ?? null ,
190
255
'order_id ' => $ this ->order_id ?? null ,
191
256
'title ' => $ this ->title ?? null ,
257
+ 'question_description ' => $ this ->question_description ?? null ,
258
+ 'question_required ' => $ this ->question_required ?? null ,
192
259
'last_name ' => $ this ->last_name ?? null ,
193
260
'answer ' => $ this ->answer ?? null ,
194
261
'belongs_to ' => $ this ->belongs_to ?? null ,
195
262
'attendee_id ' => $ this ->attendee_id ?? null ,
263
+ 'attendee_public_id ' => $ this ->attendee_public_id ?? null ,
196
264
'question_type ' => $ this ->question_type ?? null ,
197
265
'first_name ' => $ this ->first_name ?? null ,
198
266
'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 ,
199
271
];
200
272
}
201
273
}
0 commit comments