-
-
Notifications
You must be signed in to change notification settings - Fork 668
Expand file tree
/
Copy pathProductDomainObjectAbstract.php
More file actions
398 lines (340 loc) · 11.4 KB
/
Copy pathProductDomainObjectAbstract.php
File metadata and controls
398 lines (340 loc) · 11.4 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
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
<?php
namespace HiEvents\DomainObjects\Generated;
/**
* THIS FILE IS AUTOGENERATED - DO NOT EDIT IT DIRECTLY.
* @package HiEvents\DomainObjects\Generated
*/
abstract class ProductDomainObjectAbstract extends \HiEvents\DomainObjects\AbstractDomainObject
{
final public const SINGULAR_NAME = 'product';
final public const PLURAL_NAME = 'products';
final public const ID = 'id';
final public const EVENT_ID = 'event_id';
final public const PRODUCT_CATEGORY_ID = 'product_category_id';
final public const TITLE = 'title';
final public const SALE_START_DATE = 'sale_start_date';
final public const SALE_END_DATE = 'sale_end_date';
final public const MAX_PER_ORDER = 'max_per_order';
final public const DESCRIPTION = 'description';
final public const MIN_PER_ORDER = 'min_per_order';
final public const SALES_VOLUME = 'sales_volume';
final public const SALES_TAX_VOLUME = 'sales_tax_volume';
final public const HIDE_BEFORE_SALE_START_DATE = 'hide_before_sale_start_date';
final public const HIDE_AFTER_SALE_END_DATE = 'hide_after_sale_end_date';
final public const HIDE_WHEN_SOLD_OUT = 'hide_when_sold_out';
final public const SHOW_QUANTITY_REMAINING = 'show_quantity_remaining';
final public const IS_HIDDEN_WITHOUT_PROMO_CODE = 'is_hidden_without_promo_code';
final public const ORDER = 'order';
final public const CREATED_AT = 'created_at';
final public const UPDATED_AT = 'updated_at';
final public const DELETED_AT = 'deleted_at';
final public const TYPE = 'type';
final public const IS_HIDDEN = 'is_hidden';
final public const PRODUCT_TYPE = 'product_type';
final public const START_COLLAPSED = 'start_collapsed';
final public const IS_HIGHLIGHTED = 'is_highlighted';
final public const HIGHLIGHT_MESSAGE = 'highlight_message';
final public const WAITLIST_ENABLED = 'waitlist_enabled';
protected int $id;
protected int $event_id;
protected ?int $product_category_id = null;
protected string $title;
protected ?string $sale_start_date = null;
protected ?string $sale_end_date = null;
protected ?int $max_per_order = null;
protected ?string $description = null;
protected ?int $min_per_order = null;
protected float $sales_volume = 0.0;
protected float $sales_tax_volume = 0.0;
protected bool $hide_before_sale_start_date = false;
protected bool $hide_after_sale_end_date = false;
protected bool $hide_when_sold_out = false;
protected bool $show_quantity_remaining = false;
protected bool $is_hidden_without_promo_code = false;
protected int $order;
protected string $created_at;
protected ?string $updated_at = null;
protected ?string $deleted_at = null;
protected string $type = 'PAID';
protected ?bool $is_hidden = false;
protected string $product_type = 'TICKET';
protected bool $start_collapsed = false;
protected bool $is_highlighted = false;
protected ?string $highlight_message = null;
protected ?bool $waitlist_enabled = null;
public function toArray(): array
{
return [
'id' => $this->id ?? null,
'event_id' => $this->event_id ?? null,
'product_category_id' => $this->product_category_id ?? null,
'title' => $this->title ?? null,
'sale_start_date' => $this->sale_start_date ?? null,
'sale_end_date' => $this->sale_end_date ?? null,
'max_per_order' => $this->max_per_order ?? null,
'description' => $this->description ?? null,
'min_per_order' => $this->min_per_order ?? null,
'sales_volume' => $this->sales_volume ?? null,
'sales_tax_volume' => $this->sales_tax_volume ?? null,
'hide_before_sale_start_date' => $this->hide_before_sale_start_date ?? null,
'hide_after_sale_end_date' => $this->hide_after_sale_end_date ?? null,
'hide_when_sold_out' => $this->hide_when_sold_out ?? null,
'show_quantity_remaining' => $this->show_quantity_remaining ?? null,
'is_hidden_without_promo_code' => $this->is_hidden_without_promo_code ?? null,
'order' => $this->order ?? null,
'created_at' => $this->created_at ?? null,
'updated_at' => $this->updated_at ?? null,
'deleted_at' => $this->deleted_at ?? null,
'type' => $this->type ?? null,
'is_hidden' => $this->is_hidden ?? null,
'product_type' => $this->product_type ?? null,
'start_collapsed' => $this->start_collapsed ?? null,
'is_highlighted' => $this->is_highlighted ?? null,
'highlight_message' => $this->highlight_message ?? null,
'waitlist_enabled' => $this->waitlist_enabled ?? 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 setProductCategoryId(?int $product_category_id): self
{
$this->product_category_id = $product_category_id;
return $this;
}
public function getProductCategoryId(): ?int
{
return $this->product_category_id;
}
public function setTitle(string $title): self
{
$this->title = $title;
return $this;
}
public function getTitle(): string
{
return $this->title;
}
public function setSaleStartDate(?string $sale_start_date): self
{
$this->sale_start_date = $sale_start_date;
return $this;
}
public function getSaleStartDate(): ?string
{
return $this->sale_start_date;
}
public function setSaleEndDate(?string $sale_end_date): self
{
$this->sale_end_date = $sale_end_date;
return $this;
}
public function getSaleEndDate(): ?string
{
return $this->sale_end_date;
}
public function setMaxPerOrder(?int $max_per_order): self
{
$this->max_per_order = $max_per_order;
return $this;
}
public function getMaxPerOrder(): ?int
{
return $this->max_per_order;
}
public function setDescription(?string $description): self
{
$this->description = $description;
return $this;
}
public function getDescription(): ?string
{
return $this->description;
}
public function setMinPerOrder(?int $min_per_order): self
{
$this->min_per_order = $min_per_order;
return $this;
}
public function getMinPerOrder(): ?int
{
return $this->min_per_order;
}
public function setSalesVolume(float $sales_volume): self
{
$this->sales_volume = $sales_volume;
return $this;
}
public function getSalesVolume(): float
{
return $this->sales_volume;
}
public function setSalesTaxVolume(float $sales_tax_volume): self
{
$this->sales_tax_volume = $sales_tax_volume;
return $this;
}
public function getSalesTaxVolume(): float
{
return $this->sales_tax_volume;
}
public function setHideBeforeSaleStartDate(bool $hide_before_sale_start_date): self
{
$this->hide_before_sale_start_date = $hide_before_sale_start_date;
return $this;
}
public function getHideBeforeSaleStartDate(): bool
{
return $this->hide_before_sale_start_date;
}
public function setHideAfterSaleEndDate(bool $hide_after_sale_end_date): self
{
$this->hide_after_sale_end_date = $hide_after_sale_end_date;
return $this;
}
public function getHideAfterSaleEndDate(): bool
{
return $this->hide_after_sale_end_date;
}
public function setHideWhenSoldOut(bool $hide_when_sold_out): self
{
$this->hide_when_sold_out = $hide_when_sold_out;
return $this;
}
public function getHideWhenSoldOut(): bool
{
return $this->hide_when_sold_out;
}
public function setShowQuantityRemaining(bool $show_quantity_remaining): self
{
$this->show_quantity_remaining = $show_quantity_remaining;
return $this;
}
public function getShowQuantityRemaining(): bool
{
return $this->show_quantity_remaining;
}
public function setIsHiddenWithoutPromoCode(bool $is_hidden_without_promo_code): self
{
$this->is_hidden_without_promo_code = $is_hidden_without_promo_code;
return $this;
}
public function getIsHiddenWithoutPromoCode(): bool
{
return $this->is_hidden_without_promo_code;
}
public function setOrder(int $order): self
{
$this->order = $order;
return $this;
}
public function getOrder(): int
{
return $this->order;
}
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 setType(string $type): self
{
$this->type = $type;
return $this;
}
public function getType(): string
{
return $this->type;
}
public function setIsHidden(?bool $is_hidden): self
{
$this->is_hidden = $is_hidden;
return $this;
}
public function getIsHidden(): ?bool
{
return $this->is_hidden;
}
public function setProductType(string $product_type): self
{
$this->product_type = $product_type;
return $this;
}
public function getProductType(): string
{
return $this->product_type;
}
public function setStartCollapsed(bool $start_collapsed): self
{
$this->start_collapsed = $start_collapsed;
return $this;
}
public function getStartCollapsed(): bool
{
return $this->start_collapsed;
}
public function setIsHighlighted(bool $is_highlighted): self
{
$this->is_highlighted = $is_highlighted;
return $this;
}
public function getIsHighlighted(): bool
{
return $this->is_highlighted;
}
public function setHighlightMessage(?string $highlight_message): self
{
$this->highlight_message = $highlight_message;
return $this;
}
public function getHighlightMessage(): ?string
{
return $this->highlight_message;
}
public function setWaitlistEnabled(?bool $waitlist_enabled): self
{
$this->waitlist_enabled = $waitlist_enabled;
return $this;
}
public function getWaitlistEnabled(): ?bool
{
return $this->waitlist_enabled;
}
}