-
-
Notifications
You must be signed in to change notification settings - Fork 626
Expand file tree
/
Copy pathMessageDomainObjectAbstract.php
More file actions
272 lines (232 loc) · 7.09 KB
/
MessageDomainObjectAbstract.php
File metadata and controls
272 lines (232 loc) · 7.09 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
<?php
namespace HiEvents\DomainObjects\Generated;
/**
* THIS FILE IS AUTOGENERATED - DO NOT EDIT IT DIRECTLY.
* @package HiEvents\DomainObjects\Generated
*/
abstract class MessageDomainObjectAbstract extends \HiEvents\DomainObjects\AbstractDomainObject
{
final public const SINGULAR_NAME = 'message';
final public const PLURAL_NAME = 'messages';
final public const ID = 'id';
final public const EVENT_ID = 'event_id';
final public const SENT_BY_USER_ID = 'sent_by_user_id';
final public const SUBJECT = 'subject';
final public const MESSAGE = 'message';
final public const TYPE = 'type';
final public const RECIPIENT_IDS = 'recipient_ids';
final public const SENT_AT = 'sent_at';
final public const ATTENDEE_IDS = 'attendee_ids';
final public const PRODUCT_IDS = 'product_ids';
final public const ORDER_ID = 'order_id';
final public const STATUS = 'status';
final public const SEND_DATA = 'send_data';
final public const CREATED_AT = 'created_at';
final public const UPDATED_AT = 'updated_at';
final public const DELETED_AT = 'deleted_at';
final public const ELIGIBILITY_FAILURES = 'eligibility_failures';
final public const SCHEDULED_AT = 'scheduled_at';
protected int $id;
protected int $event_id;
protected int $sent_by_user_id;
protected string $subject;
protected string $message;
protected string $type;
protected array|string|null $recipient_ids = null;
protected ?string $sent_at = null;
protected array|string|null $attendee_ids = null;
protected array|string|null $product_ids = null;
protected ?int $order_id = null;
protected string $status;
protected array|string|null $send_data = null;
protected string $created_at;
protected ?string $updated_at = null;
protected ?string $deleted_at = null;
protected array|string|null $eligibility_failures = null;
protected ?string $scheduled_at = null;
public function toArray(): array
{
return [
'id' => $this->id ?? null,
'event_id' => $this->event_id ?? null,
'sent_by_user_id' => $this->sent_by_user_id ?? null,
'subject' => $this->subject ?? null,
'message' => $this->message ?? null,
'type' => $this->type ?? null,
'recipient_ids' => $this->recipient_ids ?? null,
'sent_at' => $this->sent_at ?? null,
'attendee_ids' => $this->attendee_ids ?? null,
'product_ids' => $this->product_ids ?? null,
'order_id' => $this->order_id ?? null,
'status' => $this->status ?? null,
'send_data' => $this->send_data ?? null,
'created_at' => $this->created_at ?? null,
'updated_at' => $this->updated_at ?? null,
'deleted_at' => $this->deleted_at ?? null,
'eligibility_failures' => $this->eligibility_failures ?? null,
'scheduled_at' => $this->scheduled_at ?? null,
];
}
public function setId(int $id): self
{
$this->id = $id;
return $this;
}
public function getId(): int
{
return $this->id;
}
public function setEventId(int $event_id): self
{
$this->event_id = $event_id;
return $this;
}
public function getEventId(): int
{
return $this->event_id;
}
public function setSentByUserId(int $sent_by_user_id): self
{
$this->sent_by_user_id = $sent_by_user_id;
return $this;
}
public function getSentByUserId(): int
{
return $this->sent_by_user_id;
}
public function setSubject(string $subject): self
{
$this->subject = $subject;
return $this;
}
public function getSubject(): string
{
return $this->subject;
}
public function setMessage(string $message): self
{
$this->message = $message;
return $this;
}
public function getMessage(): string
{
return $this->message;
}
public function setType(string $type): self
{
$this->type = $type;
return $this;
}
public function getType(): string
{
return $this->type;
}
public function setRecipientIds(array|string|null $recipient_ids): self
{
$this->recipient_ids = $recipient_ids;
return $this;
}
public function getRecipientIds(): array|string|null
{
return $this->recipient_ids;
}
public function setSentAt(?string $sent_at): self
{
$this->sent_at = $sent_at;
return $this;
}
public function getSentAt(): ?string
{
return $this->sent_at;
}
public function setAttendeeIds(array|string|null $attendee_ids): self
{
$this->attendee_ids = $attendee_ids;
return $this;
}
public function getAttendeeIds(): array|string|null
{
return $this->attendee_ids;
}
public function setProductIds(array|string|null $product_ids): self
{
$this->product_ids = $product_ids;
return $this;
}
public function getProductIds(): array|string|null
{
return $this->product_ids;
}
public function setOrderId(?int $order_id): self
{
$this->order_id = $order_id;
return $this;
}
public function getOrderId(): ?int
{
return $this->order_id;
}
public function setStatus(string $status): self
{
$this->status = $status;
return $this;
}
public function getStatus(): string
{
return $this->status;
}
public function setSendData(array|string|null $send_data): self
{
$this->send_data = $send_data;
return $this;
}
public function getSendData(): array|string|null
{
return $this->send_data;
}
public function setCreatedAt(string $created_at): self
{
$this->created_at = $created_at;
return $this;
}
public function getCreatedAt(): string
{
return $this->created_at;
}
public function setUpdatedAt(?string $updated_at): self
{
$this->updated_at = $updated_at;
return $this;
}
public function getUpdatedAt(): ?string
{
return $this->updated_at;
}
public function setDeletedAt(?string $deleted_at): self
{
$this->deleted_at = $deleted_at;
return $this;
}
public function getDeletedAt(): ?string
{
return $this->deleted_at;
}
public function setEligibilityFailures(array|string|null $eligibility_failures): self
{
$this->eligibility_failures = $eligibility_failures;
return $this;
}
public function getEligibilityFailures(): array|string|null
{
return $this->eligibility_failures;
}
public function setScheduledAt(?string $scheduled_at): self
{
$this->scheduled_at = $scheduled_at;
return $this;
}
public function getScheduledAt(): ?string
{
return $this->scheduled_at;
}
}