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