1
|
|
|
<?php |
2
|
|
|
|
3
|
|
|
/* |
4
|
|
|
* This file is part of the core-library package. |
5
|
|
|
* |
6
|
|
|
* (c) 2018 WEBEWEB |
7
|
|
|
* |
8
|
|
|
* For the full copyright and license information, please view the LICENSE |
9
|
|
|
* file that was distributed with this source code. |
10
|
|
|
*/ |
11
|
|
|
|
12
|
|
|
namespace WBW\Library\Core\ThirdParty\SkiData\Model; |
13
|
|
|
|
14
|
|
|
use DateTime; |
15
|
|
|
use WBW\Library\Core\ThirdParty\SkiData\Traits\CustomerTrait; |
16
|
|
|
|
17
|
|
|
/** |
18
|
|
|
* User. |
19
|
|
|
* |
20
|
|
|
* @author webeweb <https://github.com/webeweb/> |
21
|
|
|
* @package WBW\Library\Core\ThirdParty\SkiData\Model |
22
|
|
|
*/ |
23
|
|
|
class User { |
24
|
|
|
|
25
|
|
|
use CustomerTrait; |
26
|
|
|
|
27
|
|
|
/** |
28
|
|
|
* Check licence plate. |
29
|
|
|
* |
30
|
|
|
* @var bool|null |
31
|
|
|
*/ |
32
|
|
|
private $checkLicensePlate; |
33
|
|
|
|
34
|
|
|
/** |
35
|
|
|
* Credit card number. |
36
|
|
|
* |
37
|
|
|
* @var string|null |
38
|
|
|
*/ |
39
|
|
|
private $creditCardNumber; |
40
|
|
|
|
41
|
|
|
/** |
42
|
|
|
* Date of birth. |
43
|
|
|
* |
44
|
|
|
* @var DateTime|null |
45
|
|
|
*/ |
46
|
|
|
private $dateBirth; |
47
|
|
|
|
48
|
|
|
/** |
49
|
|
|
* E-ticket authentication. |
50
|
|
|
* |
51
|
|
|
* @var int|null |
52
|
|
|
*/ |
53
|
|
|
private $eTicketAuthentication; |
54
|
|
|
|
55
|
|
|
/** |
56
|
|
|
* E-ticket email/telephone. |
57
|
|
|
* |
58
|
|
|
* @var string|null |
59
|
|
|
*/ |
60
|
|
|
private $eTicketEmailTelephone; |
61
|
|
|
|
62
|
|
|
/** |
63
|
|
|
* E-ticket service art. |
64
|
|
|
* |
65
|
|
|
* @var int|null |
66
|
|
|
*/ |
67
|
|
|
private $eTicketServiceArt; |
68
|
|
|
|
69
|
|
|
/** |
70
|
|
|
* E-ticket service typ. |
71
|
|
|
* |
72
|
|
|
* @var int|null |
73
|
|
|
*/ |
74
|
|
|
private $eTicketServiceTyp; |
75
|
|
|
|
76
|
|
|
/** |
77
|
|
|
* E-ticket type p |
78
|
|
|
* |
79
|
|
|
* @var int|null |
80
|
|
|
*/ |
81
|
|
|
private $eTicketTypeP; |
82
|
|
|
|
83
|
|
|
/** |
84
|
|
|
* Excess times with credit card. |
85
|
|
|
* |
86
|
|
|
* @var bool|null |
87
|
|
|
*/ |
88
|
|
|
private $excessTimesCreditCard; |
89
|
|
|
|
90
|
|
|
/** |
91
|
|
|
* Expiry date. |
92
|
|
|
* |
93
|
|
|
* @var DateTime|null |
94
|
|
|
*/ |
95
|
|
|
private $expiryDate; |
96
|
|
|
|
97
|
|
|
/** |
98
|
|
|
* Identification number. |
99
|
|
|
* |
100
|
|
|
* @var string|null |
101
|
|
|
*/ |
102
|
|
|
private $identificationNumber; |
103
|
|
|
|
104
|
|
|
/** |
105
|
|
|
* Parking space. |
106
|
|
|
* |
107
|
|
|
* @var string|null |
108
|
|
|
*/ |
109
|
|
|
private $parkingSpace; |
110
|
|
|
|
111
|
|
|
/** |
112
|
|
|
* Passage with license plate permitted |
113
|
|
|
* |
114
|
|
|
* @var bool|null |
115
|
|
|
*/ |
116
|
|
|
private $passageLicensePlatePermitted; |
117
|
|
|
|
118
|
|
|
/** |
119
|
|
|
* User number. |
120
|
|
|
* |
121
|
|
|
* @var int|null |
122
|
|
|
*/ |
123
|
|
|
private $userNumber; |
124
|
|
|
|
125
|
|
|
/** |
126
|
|
|
* Constructor. |
127
|
|
|
*/ |
128
|
|
|
public function __construct() { |
129
|
|
|
// NOTHING TO DO |
130
|
|
|
} |
131
|
|
|
|
132
|
|
|
/** |
133
|
|
|
* Get the check licence plate. |
134
|
|
|
* |
135
|
|
|
* @return bool|null Returns the check licence plate |
136
|
|
|
*/ |
137
|
|
|
public function getCheckLicensePlate(): ?bool { |
138
|
|
|
return $this->checkLicensePlate; |
139
|
|
|
} |
140
|
|
|
|
141
|
|
|
/** |
142
|
|
|
* Get the credit card number. |
143
|
|
|
* |
144
|
|
|
* @return string|null Returns the credit card number. |
145
|
|
|
*/ |
146
|
|
|
public function getCreditCardNumber(): ?string { |
147
|
|
|
return $this->creditCardNumber; |
148
|
|
|
} |
149
|
|
|
|
150
|
|
|
/** |
151
|
|
|
* Get the date of birth. |
152
|
|
|
* |
153
|
|
|
* @return DateTime|null Returns the date of birth. |
154
|
|
|
*/ |
155
|
|
|
public function getDateBirth(): ?DateTime { |
156
|
|
|
return $this->dateBirth; |
157
|
|
|
} |
158
|
|
|
|
159
|
|
|
/** |
160
|
|
|
* Get the E-ticket authentication. |
161
|
|
|
* |
162
|
|
|
* @return int|null Returns the E-ticket authentication. |
163
|
|
|
*/ |
164
|
|
|
public function getETicketAuthentication(): ?int { |
165
|
|
|
return $this->eTicketAuthentication; |
166
|
|
|
} |
167
|
|
|
|
168
|
|
|
/** |
169
|
|
|
* Get the E-ticket email/telephone. |
170
|
|
|
* |
171
|
|
|
* @return string|null Returns the E-ticket email/telephone. |
172
|
|
|
*/ |
173
|
|
|
public function getETicketEmailTelephone(): ?string { |
174
|
|
|
return $this->eTicketEmailTelephone; |
175
|
|
|
} |
176
|
|
|
|
177
|
|
|
/** |
178
|
|
|
* Get the E-ticket service art. |
179
|
|
|
* |
180
|
|
|
* @return int|null Returns the E-ticket service art. |
181
|
|
|
*/ |
182
|
|
|
public function getETicketServiceArt(): ?int { |
183
|
|
|
return $this->eTicketServiceArt; |
184
|
|
|
} |
185
|
|
|
|
186
|
|
|
/** |
187
|
|
|
* Get the E-ticket service typ. |
188
|
|
|
* |
189
|
|
|
* @return int|null Returns the E-ticket service typ. |
190
|
|
|
*/ |
191
|
|
|
public function getETicketServiceTyp(): ?int { |
192
|
|
|
return $this->eTicketServiceTyp; |
193
|
|
|
} |
194
|
|
|
|
195
|
|
|
/** |
196
|
|
|
* Get the E-ticket type p. |
197
|
|
|
* |
198
|
|
|
* @return int|null Returns the E-ticket type p. |
199
|
|
|
*/ |
200
|
|
|
public function getETicketTypeP(): ?int { |
201
|
|
|
return $this->eTicketTypeP; |
202
|
|
|
} |
203
|
|
|
|
204
|
|
|
/** |
205
|
|
|
* Get the excess times with credit card. |
206
|
|
|
* |
207
|
|
|
* @return bool|null Returns the excess times with credit card. |
208
|
|
|
*/ |
209
|
|
|
public function getExcessTimesCreditCard(): ?bool { |
210
|
|
|
return $this->excessTimesCreditCard; |
211
|
|
|
} |
212
|
|
|
|
213
|
|
|
/** |
214
|
|
|
* Get the expiry date. |
215
|
|
|
* |
216
|
|
|
* @return DateTime|null Returns the expiry date. |
217
|
|
|
*/ |
218
|
|
|
public function getExpiryDate(): ?DateTime { |
219
|
|
|
return $this->expiryDate; |
220
|
|
|
} |
221
|
|
|
|
222
|
|
|
/** |
223
|
|
|
* Get the identification number. |
224
|
|
|
* |
225
|
|
|
* @return string|null Returns the identification number. |
226
|
|
|
*/ |
227
|
|
|
public function getIdentificationNumber(): ?string { |
228
|
|
|
return $this->identificationNumber; |
229
|
|
|
} |
230
|
|
|
|
231
|
|
|
/** |
232
|
|
|
* Get the parking space. |
233
|
|
|
* |
234
|
|
|
* @return string|null Returns the parking space. |
235
|
|
|
*/ |
236
|
|
|
public function getParkingSpace(): ?string { |
237
|
|
|
return $this->parkingSpace; |
238
|
|
|
} |
239
|
|
|
|
240
|
|
|
/** |
241
|
|
|
* Get the passage with license plate permitted. |
242
|
|
|
* |
243
|
|
|
* @return bool|null Returns teh passage with license plate permitted. |
244
|
|
|
*/ |
245
|
|
|
public function getPassageLicensePlatePermitted(): ?bool { |
246
|
|
|
return $this->passageLicensePlatePermitted; |
247
|
|
|
} |
248
|
|
|
|
249
|
|
|
/** |
250
|
|
|
* Get the user number. |
251
|
|
|
* |
252
|
|
|
* @return int|null Returns the user number. |
253
|
|
|
*/ |
254
|
|
|
public function getUserNumber(): ?int { |
255
|
|
|
return $this->userNumber; |
256
|
|
|
} |
257
|
|
|
|
258
|
|
|
/** |
259
|
|
|
* Set the check with license plate. |
260
|
|
|
* |
261
|
|
|
* @param bool|null $checkLicensePlate The check with license plate. |
262
|
|
|
* @return User Returns this user. |
263
|
|
|
*/ |
264
|
|
|
public function setCheckLicensePlate(?bool $checkLicensePlate): User { |
265
|
|
|
$this->checkLicensePlate = $checkLicensePlate; |
266
|
|
|
return $this; |
267
|
|
|
} |
268
|
|
|
|
269
|
|
|
/** |
270
|
|
|
* Set the credit card number. |
271
|
|
|
* |
272
|
|
|
* @param string|null $creditCardNumber The credit card number. |
273
|
|
|
* @return User Returns this user. |
274
|
|
|
*/ |
275
|
|
|
public function setCreditCardNumber(?string $creditCardNumber): User { |
276
|
|
|
$this->creditCardNumber = $creditCardNumber; |
277
|
|
|
return $this; |
278
|
|
|
} |
279
|
|
|
|
280
|
|
|
/** |
281
|
|
|
* Set the date of birth. |
282
|
|
|
* |
283
|
|
|
* @param DateTime|null $dateBirth The date of birth. |
284
|
|
|
* @return User Returns this user. |
285
|
|
|
*/ |
286
|
|
|
public function setDateBirth(?DateTime $dateBirth): User { |
287
|
|
|
$this->dateBirth = $dateBirth; |
288
|
|
|
return $this; |
289
|
|
|
} |
290
|
|
|
|
291
|
|
|
/** |
292
|
|
|
* Set the E-ticket authentication. |
293
|
|
|
* |
294
|
|
|
* @param int|null $eTicketAuthentication The E-ticket authentication. |
295
|
|
|
* @return User Returns this user. |
296
|
|
|
*/ |
297
|
|
|
public function setETicketAuthentication(?int $eTicketAuthentication): User { |
298
|
|
|
$this->eTicketAuthentication = $eTicketAuthentication; |
299
|
|
|
return $this; |
300
|
|
|
} |
301
|
|
|
|
302
|
|
|
/** |
303
|
|
|
* Set the E-ticket email/telephone. |
304
|
|
|
* |
305
|
|
|
* @param string|null $eTicketEmailTelephone The E-ticket email/telephone. |
306
|
|
|
* @return User Returns this user. |
307
|
|
|
*/ |
308
|
|
|
public function setETicketEmailTelephone(?string $eTicketEmailTelephone): User { |
309
|
|
|
$this->eTicketEmailTelephone = $eTicketEmailTelephone; |
310
|
|
|
return $this; |
311
|
|
|
} |
312
|
|
|
|
313
|
|
|
/** |
314
|
|
|
* Set the E-ticket service art. |
315
|
|
|
* |
316
|
|
|
* @param int|null $eTicketServiceArt The E-ticket service art. |
317
|
|
|
* @return User Returns this user. |
318
|
|
|
*/ |
319
|
|
|
public function setETicketServiceArt(?int $eTicketServiceArt): User { |
320
|
|
|
$this->eTicketServiceArt = $eTicketServiceArt; |
321
|
|
|
return $this; |
322
|
|
|
} |
323
|
|
|
|
324
|
|
|
/** |
325
|
|
|
* Set the E-ticket service typ. |
326
|
|
|
* |
327
|
|
|
* @param int|null $eTicketServiceTyp The E-ticket service typ. |
328
|
|
|
* @return User Returns this user. |
329
|
|
|
*/ |
330
|
|
|
public function setETicketServiceTyp(?int $eTicketServiceTyp): User { |
331
|
|
|
$this->eTicketServiceTyp = $eTicketServiceTyp; |
332
|
|
|
return $this; |
333
|
|
|
} |
334
|
|
|
|
335
|
|
|
/** |
336
|
|
|
* Set the E-ticket type p. |
337
|
|
|
* |
338
|
|
|
* @param int|null $eTicketTypeP The E-ticket type p. |
339
|
|
|
* @return User Returns this user. |
340
|
|
|
*/ |
341
|
|
|
public function setETicketTypeP(?int $eTicketTypeP): User { |
342
|
|
|
$this->eTicketTypeP = $eTicketTypeP; |
343
|
|
|
return $this; |
344
|
|
|
} |
345
|
|
|
|
346
|
|
|
/** |
347
|
|
|
* Set the excess times with credit card. |
348
|
|
|
* |
349
|
|
|
* @param bool|null $excessTimesCreditCard The excess times with credit card. |
350
|
|
|
* @return User Returns this user. |
351
|
|
|
*/ |
352
|
|
|
public function setExcessTimesCreditCard(?bool $excessTimesCreditCard): User { |
353
|
|
|
$this->excessTimesCreditCard = $excessTimesCreditCard; |
354
|
|
|
return $this; |
355
|
|
|
} |
356
|
|
|
|
357
|
|
|
/** |
358
|
|
|
* Set the expiry date. |
359
|
|
|
* |
360
|
|
|
* @param DateTime|null $expiryDate The expiry date. |
361
|
|
|
* @return User Returns this user. |
362
|
|
|
*/ |
363
|
|
|
public function setExpiryDate(?DateTime $expiryDate): User { |
364
|
|
|
$this->expiryDate = $expiryDate; |
365
|
|
|
return $this; |
366
|
|
|
} |
367
|
|
|
|
368
|
|
|
/** |
369
|
|
|
* Set the identification number. |
370
|
|
|
* |
371
|
|
|
* @param string|null $identificationNumber The identification number. |
372
|
|
|
* @return User Returns this user. |
373
|
|
|
*/ |
374
|
|
|
public function setIdentificationNumber(?string $identificationNumber): User { |
375
|
|
|
$this->identificationNumber = $identificationNumber; |
376
|
|
|
return $this; |
377
|
|
|
} |
378
|
|
|
|
379
|
|
|
/** |
380
|
|
|
* Set the parking space. |
381
|
|
|
* |
382
|
|
|
* @param string|null $parkingSpace The parking space. |
383
|
|
|
* @return User Returns this user. |
384
|
|
|
*/ |
385
|
|
|
public function setParkingSpace(?string $parkingSpace): User { |
386
|
|
|
$this->parkingSpace = $parkingSpace; |
387
|
|
|
return $this; |
388
|
|
|
} |
389
|
|
|
|
390
|
|
|
/** |
391
|
|
|
* Set the passage with license plate permitted. |
392
|
|
|
* |
393
|
|
|
* @param bool|null $passageLicensePlatePermitted The passage with license plate permitted. |
394
|
|
|
* @return User Returns this user. |
395
|
|
|
*/ |
396
|
|
|
public function setPassageLicensePlatePermitted(?bool $passageLicensePlatePermitted): User { |
397
|
|
|
$this->passageLicensePlatePermitted = $passageLicensePlatePermitted; |
398
|
|
|
return $this; |
399
|
|
|
} |
400
|
|
|
|
401
|
|
|
/** |
402
|
|
|
* Set the user number. |
403
|
|
|
* |
404
|
|
|
* @param int|null $userNumber The user number. |
405
|
|
|
* @return User Returns this user. |
406
|
|
|
*/ |
407
|
|
|
public function setUserNumber(?int $userNumber): User { |
408
|
|
|
$this->userNumber = $userNumber; |
409
|
|
|
return $this; |
410
|
|
|
} |
411
|
|
|
} |
412
|
|
|
|