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\CardTrait; |
16
|
|
|
use WBW\Library\Core\ThirdParty\SkiData\Traits\CustomerTrait; |
17
|
|
|
|
18
|
|
|
/** |
19
|
|
|
* Customer. |
20
|
|
|
* |
21
|
|
|
* @author webeweb <https://github.com/webeweb/> |
22
|
|
|
* @package WBW\Library\Core\ThirdParty\SkiData\Model |
23
|
|
|
*/ |
24
|
|
|
class Customer { |
25
|
|
|
|
26
|
|
|
use CardTrait; |
27
|
|
|
use CustomerTrait; |
28
|
|
|
|
29
|
|
|
/** |
30
|
|
|
* Accounting number |
31
|
|
|
* |
32
|
|
|
* @var string|null |
33
|
|
|
*/ |
34
|
|
|
private $accountingNumber; |
35
|
|
|
|
36
|
|
|
/** |
37
|
|
|
* Begin date. |
38
|
|
|
* |
39
|
|
|
* @var DateTime|null |
40
|
|
|
*/ |
41
|
|
|
private $beginDate; |
42
|
|
|
|
43
|
|
|
/** |
44
|
|
|
* City. |
45
|
|
|
* |
46
|
|
|
* @var string|null |
47
|
|
|
*/ |
48
|
|
|
private $city; |
49
|
|
|
|
50
|
|
|
/** |
51
|
|
|
* Counting of neutral cards. |
52
|
|
|
* |
53
|
|
|
* @var bool|null |
54
|
|
|
*/ |
55
|
|
|
private $countingNeutralCards; |
56
|
|
|
|
57
|
|
|
/** |
58
|
|
|
* Country. |
59
|
|
|
* |
60
|
|
|
* @var string|null |
61
|
|
|
*/ |
62
|
|
|
private $country; |
63
|
|
|
|
64
|
|
|
/** |
65
|
|
|
* Deposit. |
66
|
|
|
* |
67
|
|
|
* @var int|null |
68
|
|
|
*/ |
69
|
|
|
private $deposit; |
70
|
|
|
|
71
|
|
|
/** |
72
|
|
|
* Entry during max. level allowed. |
73
|
|
|
* |
74
|
|
|
* @var bool|null |
75
|
|
|
*/ |
76
|
|
|
private $entryMaxLevelAllowed; |
77
|
|
|
|
78
|
|
|
/** |
79
|
|
|
* ID document no. |
80
|
|
|
* |
81
|
|
|
* @var string|null |
82
|
|
|
*/ |
83
|
|
|
private $idDocumentNo; |
84
|
|
|
|
85
|
|
|
/** |
86
|
|
|
* Max. level per car park. |
87
|
|
|
* |
88
|
|
|
* @var bool|null |
89
|
|
|
*/ |
90
|
|
|
private $maxLevelCarPark; |
91
|
|
|
|
92
|
|
|
/** |
93
|
|
|
* Maximum level. |
94
|
|
|
* |
95
|
|
|
* @var int|null |
96
|
|
|
*/ |
97
|
|
|
private $maximumLevel; |
98
|
|
|
|
99
|
|
|
/** |
100
|
|
|
* Natinality. |
101
|
|
|
* |
102
|
|
|
* @var string|null |
103
|
|
|
*/ |
104
|
|
|
private $nationality; |
105
|
|
|
|
106
|
|
|
/** |
107
|
|
|
* PCode. |
108
|
|
|
* |
109
|
|
|
* @var string|null |
110
|
|
|
*/ |
111
|
|
|
private $pCode; |
112
|
|
|
|
113
|
|
|
/** |
114
|
|
|
* Rental agreement no. |
115
|
|
|
* |
116
|
|
|
* @var string|null |
117
|
|
|
*/ |
118
|
|
|
private $rentalAgreementNo; |
119
|
|
|
|
120
|
|
|
/** |
121
|
|
|
* Street. |
122
|
|
|
* |
123
|
|
|
* @var string|null |
124
|
|
|
*/ |
125
|
|
|
private $street; |
126
|
|
|
|
127
|
|
|
/** |
128
|
|
|
* Tax code. |
129
|
|
|
* |
130
|
|
|
* @var string|null |
131
|
|
|
*/ |
132
|
|
|
private $taxCode; |
133
|
|
|
|
134
|
|
|
/** |
135
|
|
|
* Telephone. |
136
|
|
|
* |
137
|
|
|
* @var string|null |
138
|
|
|
*/ |
139
|
|
|
private $telephone; |
140
|
|
|
|
141
|
|
|
/** |
142
|
|
|
* Termination date. |
143
|
|
|
* |
144
|
|
|
* @var DateTime|null |
145
|
|
|
*/ |
146
|
|
|
private $terminationDate; |
147
|
|
|
|
148
|
|
|
/** |
149
|
|
|
* Ticket return allowed. |
150
|
|
|
* |
151
|
|
|
* @var bool|null |
152
|
|
|
*/ |
153
|
|
|
private $ticketReturnAllowed; |
154
|
|
|
|
155
|
|
|
/** |
156
|
|
|
* Constructor. |
157
|
|
|
*/ |
158
|
|
|
public function __construct() { |
159
|
|
|
// NOTHING TO DO |
160
|
|
|
} |
161
|
|
|
|
162
|
|
|
/** |
163
|
|
|
* Get the accounting number. |
164
|
|
|
* |
165
|
|
|
* @return string|null Returns the accounting number. |
166
|
|
|
*/ |
167
|
|
|
public function getAccountingNumber(): ?string { |
168
|
|
|
return $this->accountingNumber; |
169
|
|
|
} |
170
|
|
|
|
171
|
|
|
/** |
172
|
|
|
* Get the begin date. |
173
|
|
|
* |
174
|
|
|
* @return DateTime|null Returns the begin date. |
175
|
|
|
*/ |
176
|
|
|
public function getBeginDate(): ?DateTime { |
177
|
|
|
return $this->beginDate; |
178
|
|
|
} |
179
|
|
|
|
180
|
|
|
/** |
181
|
|
|
* Get the city. |
182
|
|
|
* |
183
|
|
|
* @return string|null Returns the city. |
184
|
|
|
*/ |
185
|
|
|
public function getCity(): ?string { |
186
|
|
|
return $this->city; |
187
|
|
|
} |
188
|
|
|
|
189
|
|
|
/** |
190
|
|
|
* Get the counting neutral cards. |
191
|
|
|
* |
192
|
|
|
* @return bool|null Returns the counting neutral cards. |
193
|
|
|
*/ |
194
|
|
|
public function getCountingNeutralCards(): ?bool { |
195
|
|
|
return $this->countingNeutralCards; |
196
|
|
|
} |
197
|
|
|
|
198
|
|
|
/** |
199
|
|
|
* Get the country. |
200
|
|
|
* |
201
|
|
|
* @return string|null Returns the country. |
202
|
|
|
*/ |
203
|
|
|
public function getCountry(): ?string { |
204
|
|
|
return $this->country; |
205
|
|
|
} |
206
|
|
|
|
207
|
|
|
/** |
208
|
|
|
* Get the deposit. |
209
|
|
|
* |
210
|
|
|
* @return int|null Returns the deposit. |
211
|
|
|
*/ |
212
|
|
|
public function getDeposit(): ?int { |
213
|
|
|
return $this->deposit; |
214
|
|
|
} |
215
|
|
|
|
216
|
|
|
/** |
217
|
|
|
* Get the entry during max. level allowed. |
218
|
|
|
* |
219
|
|
|
* @return bool|null Returns the entry during max. level allowed. |
220
|
|
|
*/ |
221
|
|
|
public function getEntryMaxLevelAllowed(): ?bool { |
222
|
|
|
return $this->entryMaxLevelAllowed; |
223
|
|
|
} |
224
|
|
|
|
225
|
|
|
/** |
226
|
|
|
* Get the ID document no. |
227
|
|
|
* |
228
|
|
|
* @return string|null Returns the ID document no. |
229
|
|
|
*/ |
230
|
|
|
public function getIdDocumentNo(): ?string { |
231
|
|
|
return $this->idDocumentNo; |
232
|
|
|
} |
233
|
|
|
|
234
|
|
|
/** |
235
|
|
|
* Get the max level per car park. |
236
|
|
|
* |
237
|
|
|
* @return bool|null Returns the max level per car park. |
238
|
|
|
*/ |
239
|
|
|
public function getMaxLevelCarPark(): ?bool { |
240
|
|
|
return $this->maxLevelCarPark; |
241
|
|
|
} |
242
|
|
|
|
243
|
|
|
/** |
244
|
|
|
* Get the maximum level. |
245
|
|
|
* |
246
|
|
|
* @return int|null Returns the maximum level. |
247
|
|
|
*/ |
248
|
|
|
public function getMaximumLevel(): ?int { |
249
|
|
|
return $this->maximumLevel; |
250
|
|
|
} |
251
|
|
|
|
252
|
|
|
/** |
253
|
|
|
* Get the nationality. |
254
|
|
|
* |
255
|
|
|
* @return string|null Returns the nationality. |
256
|
|
|
*/ |
257
|
|
|
public function getNationality(): ?string { |
258
|
|
|
return $this->nationality; |
259
|
|
|
} |
260
|
|
|
|
261
|
|
|
/** |
262
|
|
|
* Get the PCode. |
263
|
|
|
* |
264
|
|
|
* @return string|null Returns the PCode. |
265
|
|
|
*/ |
266
|
|
|
public function getPCode(): ?string { |
267
|
|
|
return $this->pCode; |
268
|
|
|
} |
269
|
|
|
|
270
|
|
|
/** |
271
|
|
|
* Get the rental agreement no. |
272
|
|
|
* |
273
|
|
|
* @return string|null Returns the rental agreement no. |
274
|
|
|
*/ |
275
|
|
|
public function getRentalAgreementNo(): ?string { |
276
|
|
|
return $this->rentalAgreementNo; |
277
|
|
|
} |
278
|
|
|
|
279
|
|
|
/** |
280
|
|
|
* Get the street. |
281
|
|
|
* |
282
|
|
|
* @return string|null Returns the street. |
283
|
|
|
*/ |
284
|
|
|
public function getStreet(): ?string { |
285
|
|
|
return $this->street; |
286
|
|
|
} |
287
|
|
|
|
288
|
|
|
/** |
289
|
|
|
* Get the tax code. |
290
|
|
|
* |
291
|
|
|
* @return string|null Returns the tax code. |
292
|
|
|
*/ |
293
|
|
|
public function getTaxCode(): ?string { |
294
|
|
|
return $this->taxCode; |
295
|
|
|
} |
296
|
|
|
|
297
|
|
|
/** |
298
|
|
|
* Get the telephone. |
299
|
|
|
* |
300
|
|
|
* @return string|null Return the telephone. |
301
|
|
|
*/ |
302
|
|
|
public function getTelephone(): ?string { |
303
|
|
|
return $this->telephone; |
304
|
|
|
} |
305
|
|
|
|
306
|
|
|
/** |
307
|
|
|
* Get the termination date. |
308
|
|
|
* |
309
|
|
|
* @return DateTime|null Returns the termination date. |
310
|
|
|
*/ |
311
|
|
|
public function getTerminationDate(): ?DateTime { |
312
|
|
|
return $this->terminationDate; |
313
|
|
|
} |
314
|
|
|
|
315
|
|
|
/** |
316
|
|
|
* Get the ticket return allowed. |
317
|
|
|
* |
318
|
|
|
* @return bool|null Returns the ticket return allowed. |
319
|
|
|
*/ |
320
|
|
|
public function getTicketReturnAllowed(): ?bool { |
321
|
|
|
return $this->ticketReturnAllowed; |
322
|
|
|
} |
323
|
|
|
|
324
|
|
|
/** |
325
|
|
|
* Set the accounting number. |
326
|
|
|
* |
327
|
|
|
* @param string|null $accountingNumber The accounting number. |
328
|
|
|
* @return Customer Returns this customer. |
329
|
|
|
*/ |
330
|
|
|
public function setAccountingNumber(?string $accountingNumber): Customer { |
331
|
|
|
$this->accountingNumber = $accountingNumber; |
332
|
|
|
return $this; |
333
|
|
|
} |
334
|
|
|
|
335
|
|
|
/** |
336
|
|
|
* Set the begin date. |
337
|
|
|
* |
338
|
|
|
* @param DateTime|null $beginDate The begin date. |
339
|
|
|
* @return Customer Returns this customer. |
340
|
|
|
*/ |
341
|
|
|
public function setBeginDate(?DateTime $beginDate): Customer { |
342
|
|
|
$this->beginDate = $beginDate; |
343
|
|
|
return $this; |
344
|
|
|
} |
345
|
|
|
|
346
|
|
|
/** |
347
|
|
|
* Set the city. |
348
|
|
|
* |
349
|
|
|
* @param string|null $city The city. |
350
|
|
|
* @return Customer Returns this customer. |
351
|
|
|
*/ |
352
|
|
|
public function setCity(?string $city): Customer { |
353
|
|
|
$this->city = $city; |
354
|
|
|
return $this; |
355
|
|
|
} |
356
|
|
|
|
357
|
|
|
/** |
358
|
|
|
* Set the counting neutral cards. |
359
|
|
|
* |
360
|
|
|
* @param bool|null $countingNeutralCards The counting neutral cards. |
361
|
|
|
* @return Customer Returns this customer. |
362
|
|
|
*/ |
363
|
|
|
public function setCountingNeutralCards(?bool $countingNeutralCards): Customer { |
364
|
|
|
$this->countingNeutralCards = $countingNeutralCards; |
365
|
|
|
return $this; |
366
|
|
|
} |
367
|
|
|
|
368
|
|
|
/** |
369
|
|
|
* Set the country. |
370
|
|
|
* |
371
|
|
|
* @param string|null $country The country. |
372
|
|
|
* @return Customer Returns this customer. |
373
|
|
|
*/ |
374
|
|
|
public function setCountry(?string $country): Customer { |
375
|
|
|
$this->country = $country; |
376
|
|
|
return $this; |
377
|
|
|
} |
378
|
|
|
|
379
|
|
|
/** |
380
|
|
|
* Set the deposit. |
381
|
|
|
* |
382
|
|
|
* @param int|null $deposit The deposit. |
383
|
|
|
* @return Customer Returns this customer. |
384
|
|
|
*/ |
385
|
|
|
public function setDeposit(?int $deposit): Customer { |
386
|
|
|
$this->deposit = $deposit; |
387
|
|
|
return $this; |
388
|
|
|
} |
389
|
|
|
|
390
|
|
|
/** |
391
|
|
|
* Set the entry during max level allowed. |
392
|
|
|
* |
393
|
|
|
* @param bool|null $entryMaxLevelAllowed The entry during max level allowed. |
394
|
|
|
* @return Customer Returns this customer. |
395
|
|
|
*/ |
396
|
|
|
public function setEntryMaxLevelAllowed(?bool $entryMaxLevelAllowed): Customer { |
397
|
|
|
$this->entryMaxLevelAllowed = $entryMaxLevelAllowed; |
398
|
|
|
return $this; |
399
|
|
|
} |
400
|
|
|
|
401
|
|
|
/** |
402
|
|
|
* Set the ID document no. |
403
|
|
|
* |
404
|
|
|
* @param string|null $idDocumentNo The ID document no. |
405
|
|
|
* @return Customer Returns this customer. |
406
|
|
|
*/ |
407
|
|
|
public function setIdDocumentNo(?string $idDocumentNo): Customer { |
408
|
|
|
$this->idDocumentNo = $idDocumentNo; |
409
|
|
|
return $this; |
410
|
|
|
} |
411
|
|
|
|
412
|
|
|
/** |
413
|
|
|
* Set the max level per car park. |
414
|
|
|
* |
415
|
|
|
* @param bool|null $maxLevelCarPark The max level per car park. |
416
|
|
|
* @return Customer Returns this customer. |
417
|
|
|
*/ |
418
|
|
|
public function setMaxLevelCarPark(?bool $maxLevelCarPark): Customer { |
419
|
|
|
$this->maxLevelCarPark = $maxLevelCarPark; |
420
|
|
|
return $this; |
421
|
|
|
} |
422
|
|
|
|
423
|
|
|
/** |
424
|
|
|
* Set the maximum level. |
425
|
|
|
* |
426
|
|
|
* @param int|null $maximumLevel The maximum level. |
427
|
|
|
* @return Customer Returns this customer. |
428
|
|
|
*/ |
429
|
|
|
public function setMaximumLevel(?int $maximumLevel): Customer { |
430
|
|
|
$this->maximumLevel = $maximumLevel; |
431
|
|
|
return $this; |
432
|
|
|
} |
433
|
|
|
|
434
|
|
|
/** |
435
|
|
|
* Set the nationality. |
436
|
|
|
* |
437
|
|
|
* @param string|null $nationality The nationality. |
438
|
|
|
* @return Customer Returns this customer. |
439
|
|
|
*/ |
440
|
|
|
public function setNationality(?string $nationality): Customer { |
441
|
|
|
$this->nationality = $nationality; |
442
|
|
|
return $this; |
443
|
|
|
} |
444
|
|
|
|
445
|
|
|
/** |
446
|
|
|
* Set the PCode. |
447
|
|
|
* |
448
|
|
|
* @param string|null $pCode The PCode. |
449
|
|
|
* @return Customer Returns this customer. |
450
|
|
|
*/ |
451
|
|
|
public function setPCode(?string $pCode): Customer { |
452
|
|
|
$this->pCode = $pCode; |
453
|
|
|
return $this; |
454
|
|
|
} |
455
|
|
|
|
456
|
|
|
/** |
457
|
|
|
* Set the rental agreements no. |
458
|
|
|
* |
459
|
|
|
* @param string|null $rentalAgreementNo The rental agreement no. |
460
|
|
|
* @return Customer Returns this customer. |
461
|
|
|
*/ |
462
|
|
|
public function setRentalAgreementNo(?string $rentalAgreementNo): Customer { |
463
|
|
|
$this->rentalAgreementNo = $rentalAgreementNo; |
464
|
|
|
return $this; |
465
|
|
|
} |
466
|
|
|
|
467
|
|
|
/** |
468
|
|
|
* Set the street. |
469
|
|
|
* |
470
|
|
|
* @param string|null $street The street. |
471
|
|
|
* @return Customer Returns this customer. |
472
|
|
|
*/ |
473
|
|
|
public function setStreet(?string $street): Customer { |
474
|
|
|
$this->street = $street; |
475
|
|
|
return $this; |
476
|
|
|
} |
477
|
|
|
|
478
|
|
|
/** |
479
|
|
|
* Set the tax code. |
480
|
|
|
* |
481
|
|
|
* @param string|null $taxCode The tax code. |
482
|
|
|
* @return Customer Returns this customer. |
483
|
|
|
*/ |
484
|
|
|
public function setTaxCode(?string $taxCode): Customer { |
485
|
|
|
$this->taxCode = $taxCode; |
486
|
|
|
return $this; |
487
|
|
|
} |
488
|
|
|
|
489
|
|
|
/** |
490
|
|
|
* Set the telephone. |
491
|
|
|
* |
492
|
|
|
* @param string|null $telephone The telephone. |
493
|
|
|
* @return Customer Returns this customer. |
494
|
|
|
*/ |
495
|
|
|
public function setTelephone(?string $telephone): Customer { |
496
|
|
|
$this->telephone = $telephone; |
497
|
|
|
return $this; |
498
|
|
|
} |
499
|
|
|
|
500
|
|
|
/** |
501
|
|
|
* Set the termination date. |
502
|
|
|
* |
503
|
|
|
* @param DateTime|null $terminationDate The termination date. |
504
|
|
|
* @return Customer Returns this customer. |
505
|
|
|
*/ |
506
|
|
|
public function setTerminationDate(?DateTime $terminationDate): Customer { |
507
|
|
|
$this->terminationDate = $terminationDate; |
508
|
|
|
return $this; |
509
|
|
|
} |
510
|
|
|
|
511
|
|
|
/** |
512
|
|
|
* Set the ticket return allowed. |
513
|
|
|
* |
514
|
|
|
* @param bool|null $ticketReturnAllowed The ticket return allowed. |
515
|
|
|
* @return Customer Returns this customer. |
516
|
|
|
*/ |
517
|
|
|
public function setTicketReturnAllowed(?bool $ticketReturnAllowed): Customer { |
518
|
|
|
$this->ticketReturnAllowed = $ticketReturnAllowed; |
519
|
|
|
return $this; |
520
|
|
|
} |
521
|
|
|
} |
522
|
|
|
|