-
-
Notifications
You must be signed in to change notification settings - Fork 624
Expand file tree
/
Copy pathEventStatisticDomainObjectAbstract.php
More file actions
272 lines (232 loc) · 7.6 KB
/
EventStatisticDomainObjectAbstract.php
File metadata and controls
272 lines (232 loc) · 7.6 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 EventStatisticDomainObjectAbstract extends \HiEvents\DomainObjects\AbstractDomainObject
{
final public const SINGULAR_NAME = 'event_statistic';
final public const PLURAL_NAME = 'event_statistics';
final public const ID = 'id';
final public const EVENT_ID = 'event_id';
final public const UNIQUE_VIEWS = 'unique_views';
final public const TOTAL_VIEWS = 'total_views';
final public const SALES_TOTAL_GROSS = 'sales_total_gross';
final public const TOTAL_TAX = 'total_tax';
final public const SALES_TOTAL_BEFORE_ADDITIONS = 'sales_total_before_additions';
final public const CREATED_AT = 'created_at';
final public const DELETED_AT = 'deleted_at';
final public const UPDATED_AT = 'updated_at';
final public const TOTAL_FEE = 'total_fee';
final public const PRODUCTS_SOLD = 'products_sold';
final public const VERSION = 'version';
final public const ORDERS_CREATED = 'orders_created';
final public const TOTAL_REFUNDED = 'total_refunded';
final public const ATTENDEES_REGISTERED = 'attendees_registered';
final public const ORDERS_CANCELLED = 'orders_cancelled';
final public const EXTERNAL_REGISTRATION_CLICKS = 'external_registration_clicks';
protected int $id;
protected int $event_id;
protected int $unique_views = 0;
protected int $total_views = 0;
protected float $sales_total_gross = 0.0;
protected float $total_tax = 0.0;
protected float $sales_total_before_additions = 0.0;
protected string $created_at;
protected ?string $deleted_at = null;
protected ?string $updated_at = null;
protected float $total_fee = 0.0;
protected int $products_sold = 0;
protected int $version = 0;
protected int $orders_created = 0;
protected float $total_refunded = 0.0;
protected int $attendees_registered = 0;
protected int $orders_cancelled = 0;
protected int $external_registration_clicks = 0;
public function toArray(): array
{
return [
'id' => $this->id ?? null,
'event_id' => $this->event_id ?? null,
'unique_views' => $this->unique_views ?? null,
'total_views' => $this->total_views ?? null,
'sales_total_gross' => $this->sales_total_gross ?? null,
'total_tax' => $this->total_tax ?? null,
'sales_total_before_additions' => $this->sales_total_before_additions ?? null,
'created_at' => $this->created_at ?? null,
'deleted_at' => $this->deleted_at ?? null,
'updated_at' => $this->updated_at ?? null,
'total_fee' => $this->total_fee ?? null,
'products_sold' => $this->products_sold ?? null,
'version' => $this->version ?? null,
'orders_created' => $this->orders_created ?? null,
'total_refunded' => $this->total_refunded ?? null,
'attendees_registered' => $this->attendees_registered ?? null,
'orders_cancelled' => $this->orders_cancelled ?? null,
'external_registration_clicks' => $this->external_registration_clicks ?? 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 setUniqueViews(int $unique_views): self
{
$this->unique_views = $unique_views;
return $this;
}
public function getUniqueViews(): int
{
return $this->unique_views;
}
public function setTotalViews(int $total_views): self
{
$this->total_views = $total_views;
return $this;
}
public function getTotalViews(): int
{
return $this->total_views;
}
public function setSalesTotalGross(float $sales_total_gross): self
{
$this->sales_total_gross = $sales_total_gross;
return $this;
}
public function getSalesTotalGross(): float
{
return $this->sales_total_gross;
}
public function setTotalTax(float $total_tax): self
{
$this->total_tax = $total_tax;
return $this;
}
public function getTotalTax(): float
{
return $this->total_tax;
}
public function setSalesTotalBeforeAdditions(float $sales_total_before_additions): self
{
$this->sales_total_before_additions = $sales_total_before_additions;
return $this;
}
public function getSalesTotalBeforeAdditions(): float
{
return $this->sales_total_before_additions;
}
public function setCreatedAt(string $created_at): self
{
$this->created_at = $created_at;
return $this;
}
public function getCreatedAt(): string
{
return $this->created_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 setUpdatedAt(?string $updated_at): self
{
$this->updated_at = $updated_at;
return $this;
}
public function getUpdatedAt(): ?string
{
return $this->updated_at;
}
public function setTotalFee(float $total_fee): self
{
$this->total_fee = $total_fee;
return $this;
}
public function getTotalFee(): float
{
return $this->total_fee;
}
public function setProductsSold(int $products_sold): self
{
$this->products_sold = $products_sold;
return $this;
}
public function getProductsSold(): int
{
return $this->products_sold;
}
public function setVersion(int $version): self
{
$this->version = $version;
return $this;
}
public function getVersion(): int
{
return $this->version;
}
public function setOrdersCreated(int $orders_created): self
{
$this->orders_created = $orders_created;
return $this;
}
public function getOrdersCreated(): int
{
return $this->orders_created;
}
public function setTotalRefunded(float $total_refunded): self
{
$this->total_refunded = $total_refunded;
return $this;
}
public function getTotalRefunded(): float
{
return $this->total_refunded;
}
public function setAttendeesRegistered(int $attendees_registered): self
{
$this->attendees_registered = $attendees_registered;
return $this;
}
public function getAttendeesRegistered(): int
{
return $this->attendees_registered;
}
public function setOrdersCancelled(int $orders_cancelled): self
{
$this->orders_cancelled = $orders_cancelled;
return $this;
}
public function getOrdersCancelled(): int
{
return $this->orders_cancelled;
}
public function setExternalRegistrationClicks(int $external_registration_clicks): self
{
$this->external_registration_clicks = $external_registration_clicks;
return $this;
}
public function getExternalRegistrationClicks(): int
{
return $this->external_registration_clicks;
}
}