Passed
Push — master ( c2faf8...afa411 )
by Al3x
11:51
created

Client::setShippingAddress1()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 0
CRAP Score 2

Importance

Changes 0
Metric Value
cc 1
eloc 1
c 0
b 0
f 0
nc 1
nop 1
dl 0
loc 3
ccs 0
cts 2
cp 0
crap 2
rs 10
1
<?php
2
declare(strict_types=1);
3
4
namespace InvoiceNinjaModule\Model;
5
6
use InvoiceNinjaModule\Model\Interfaces\ClientInterface;
7
use InvoiceNinjaModule\Model\Interfaces\ContactInterface;
8
9
/**
10
 * Class Client
11
 */
12
final class Client extends Base implements ClientInterface
13
{
14
    private string $userId = '';
15
    private string $assignedUserId = '';
16
    private string $groupSettingsId = '';
17
    private string $displayName = '';
18
    private string $number = '';
19
    private string $companyId = '';
20
    private string $name = '';
21
    private string $website = '';
22
    private string $privateNotes = '';
23
    private string $clientHash = '';
24
    private string $industryId = '';
25
    private string $sizeId = '';
26
    private string $address1 = '';
27
    private string $address2 = '';
28
    private string $city = '';
29
    private string $state = '';
30
    private string $postalCode = '';
31
    private string $phone = '';
32
    private string $countryId = '';
33
    private string $customValue1 = '';
34
    private string $customValue2 = '';
35
    private string $customValue3 = '';
36
    private string $customValue4 = '';
37
    private string $vatNumber = '';
38
    private string $idNumber = '';
39
    private string $shippingAddress1 = '';
40
    private string $shippingAddress2 = '';
41
    private string $shippingCity = '';
42
    private string $shippingState= '';
43
    private string $shippingPostalCode= '';
44
    private string $shippingCountryId= '';
45
    private float $balance = 0;
46
    private float $paidToDate = 0;
47
    private float $creditBalance = 0;
48
    private int $lastLogin = 0;
49
    /** @var ContactInterface[]  */
50
    private array $contacts = [];
51
    private array $documents = [];
52
    private array $gatewayTokens = [];
53
54
    /**
55
     * @return float
56
     */
57 2
    public function getBalance() :float
58
    {
59 2
        return $this->balance;
60
    }
61
62
    /**
63
     * @param float $balance
64
     */
65 1
    public function setBalance(float $balance) :void
66
    {
67 1
        $this->balance = $balance;
68 1
    }
69
70
    /**
71
     * @return float
72
     */
73 2
    public function getPaidToDate() :float
74
    {
75 2
        return $this->paidToDate;
76
    }
77
78
    /**
79
     * @param float $paidToDate
80
     */
81 1
    public function setPaidToDate(float $paidToDate) :void
82
    {
83 1
        $this->paidToDate = $paidToDate;
84 1
    }
85
86
    /**
87
     * @return string
88
     */
89 2
    public function getUserId() :string
90
    {
91 2
        return $this->userId;
92
    }
93
94
    /**
95
     * @param string $userId
96
     */
97 1
    public function setUserId(string $userId) :void
98
    {
99 1
        $this->userId = $userId;
100 1
    }
101
102
    /**
103
     * @return string
104
     */
105 2
    public function getAddress1() :string
106
    {
107 2
        return $this->address1;
108
    }
109
110
    /**
111
     * @param string $address1
112
     */
113 1
    public function setAddress1(string $address1) :void
114
    {
115 1
        $this->address1 = $address1;
116 1
    }
117
118
    /**
119
     * @return string
120
     */
121 2
    public function getAddress2() :string
122
    {
123 2
        return $this->address2;
124
    }
125
126
    /**
127
     * @param string $address2
128
     */
129 1
    public function setAddress2(string $address2) :void
130
    {
131 1
        $this->address2 = $address2;
132 1
    }
133
134
    /**
135
     * @return string
136
     */
137 2
    public function getCity() :string
138
    {
139 2
        return $this->city;
140
    }
141
142
    /**
143
     * @param string $city
144
     */
145 1
    public function setCity(string $city) :void
146
    {
147 1
        $this->city = $city;
148 1
    }
149
150
    /**
151
     * @return string
152
     */
153 2
    public function getState() :string
154
    {
155 2
        return $this->state;
156
    }
157
158
    /**
159
     * @param string $state
160
     */
161 1
    public function setState(string $state) :void
162
    {
163 1
        $this->state = $state;
164 1
    }
165
166
    /**
167
     * @return string
168
     */
169 2
    public function getPostalCode() :string
170
    {
171 2
        return $this->postalCode;
172
    }
173
174
    /**
175
     * @param string $postalCode
176
     */
177 1
    public function setPostalCode(string $postalCode) :void
178
    {
179 1
        $this->postalCode = $postalCode;
180 1
    }
181
182
    /**
183
     * @return string
184
     */
185 2
    public function getCountryId() :string
186
    {
187 2
        return $this->countryId;
188
    }
189
190
    /**
191
     * @param string $countryId
192
     */
193 1
    public function setCountryId(string $countryId) :void
194
    {
195 1
        $this->countryId = $countryId;
196 1
    }
197
198
    /**
199
     * @return string
200
     */
201 2
    public function getPrivateNotes() :string
202
    {
203 2
        return $this->privateNotes;
204
    }
205
206
    /**
207
     * @param string $privateNotes
208
     */
209 1
    public function setPrivateNotes(string $privateNotes) :void
210
    {
211 1
        $this->privateNotes = $privateNotes;
212 1
    }
213
214
    /**
215
     * @return int
216
     */
217 2
    public function getLastLogin() :int
218
    {
219 2
        return $this->lastLogin;
220
    }
221
222
    /**
223
     * @return string
224
     */
225 2
    public function getWebsite() :string
226
    {
227 2
        return $this->website;
228
    }
229
230
    /**
231
     * @param string $website
232
     */
233 1
    public function setWebsite(string $website) :void
234
    {
235 1
        $this->website = $website;
236 1
    }
237
238
    /**
239
     * @return string
240
     */
241 2
    public function getIndustryId() :string
242
    {
243 2
        return $this->industryId;
244
    }
245
246
    /**
247
     * @param string $industryId
248
     */
249 1
    public function setIndustryId(string $industryId) :void
250
    {
251 1
        $this->industryId = $industryId;
252 1
    }
253
254
    /**
255
     * @return string
256
     */
257 2
    public function getSizeId() :string
258
    {
259 2
        return $this->sizeId;
260
    }
261
262
    /**
263
     * @param string $sizeId
264
     */
265 1
    public function setSizeId(string $sizeId) :void
266
    {
267 1
        $this->sizeId = $sizeId;
268 1
    }
269
270
    /**
271
     * @return string
272
     */
273 2
    public function getCustomValue1() :string
274
    {
275 2
        return $this->customValue1;
276
    }
277
278
    /**
279
     * @param string $customValue
280
     */
281 1
    public function setCustomValue1(string $customValue) :void
282
    {
283 1
        $this->customValue1 = $customValue;
284 1
    }
285
286
    /**
287
     * @return string
288
     */
289 2
    public function getCustomValue2() :string
290
    {
291 2
        return $this->customValue2;
292
    }
293
294
    /**
295
     * @param string $customValue
296
     */
297 1
    public function setCustomValue2(string $customValue) :void
298
    {
299 1
        $this->customValue2 = $customValue;
300 1
    }
301
302
    /**
303
     * @return string
304
     */
305 2
    public function getVatNumber() :string
306
    {
307 2
        return $this->vatNumber;
308
    }
309
310
    /**
311
     * @param string $vatNumber
312
     */
313 1
    public function setVatNumber(string $vatNumber) :void
314
    {
315 1
        $this->vatNumber = $vatNumber;
316 1
    }
317
318
    /**
319
     * @return string
320
     */
321 2
    public function getIdNumber() :string
322
    {
323 2
        return $this->idNumber;
324
    }
325
326
    /**
327
     * @param string $idNumber
328
     */
329 1
    public function setIdNumber(string $idNumber) :void
330
    {
331 1
        $this->idNumber = $idNumber;
332 1
    }
333
334
    /**
335
     * @return ContactInterface[]
336
     */
337 2
    public function getContacts() :array
338
    {
339 2
        return $this->contacts;
340
    }
341
342
    /**
343
     * @param ContactInterface[] $contacts
344
     */
345 1
    public function setContacts(array $contacts) :void
346
    {
347 1
        $this->contacts = $contacts;
348 1
    }
349
350
    /**
351
     * @return string
352
     */
353 2
    public function getName() :string
354
    {
355 2
        return $this->name;
356
    }
357
358
    /**
359
     * @param string $name
360
     */
361 1
    public function setName(string $name) :void
362
    {
363 1
        $this->name = $name;
364 1
    }
365
366
    /**
367
     * @return string
368
     */
369
    public function getAssignedUserId() : string
370
    {
371
        return $this->assignedUserId;
372
    }
373
374
    /**
375
     * @param string $assignedUserId
376
     */
377
    public function setAssignedUserId(string $assignedUserId) : void
378
    {
379
        $this->assignedUserId = $assignedUserId;
380
    }
381
382
    /**
383
     * @return string
384
     */
385
    public function getGroupSettingsId() : string
386
    {
387
        return $this->groupSettingsId;
388
    }
389
390
    /**
391
     * @param string $groupSettingsId
392
     */
393
    public function setGroupSettingsId(string $groupSettingsId) : void
394
    {
395
        $this->groupSettingsId = $groupSettingsId;
396
    }
397
398
    /**
399
     * @return string
400
     */
401
    public function getDisplayName() : string
402
    {
403
        return $this->displayName;
404
    }
405
406
    /**
407
     * @param string $displayName
408
     */
409
    public function setDisplayName(string $displayName) : void
410
    {
411
        $this->displayName = $displayName;
412
    }
413
414
    /**
415
     * @return string
416
     */
417
    public function getNumber() : string
418
    {
419
        return $this->number;
420
    }
421
422
    /**
423
     * @param string $number
424
     */
425
    public function setNumber(string $number) : void
426
    {
427
        $this->number = $number;
428
    }
429
430
    /**
431
     * @return string
432
     */
433
    public function getCompanyId() : string
434
    {
435
        return $this->companyId;
436
    }
437
438
    /**
439
     * @param string $companyId
440
     */
441
    public function setCompanyId(string $companyId) : void
442
    {
443
        $this->companyId = $companyId;
444
    }
445
446
    /**
447
     * @return string
448
     */
449
    public function getClientHash() : string
450
    {
451
        return $this->clientHash;
452
    }
453
454
    /**
455
     * @param string $clientHash
456
     */
457
    public function setClientHash(string $clientHash) : void
458
    {
459
        $this->clientHash = $clientHash;
460
    }
461
462
    /**
463
     * @return string
464
     */
465
    public function getPhone() : string
466
    {
467
        return $this->phone;
468
    }
469
470
    /**
471
     * @param string $phone
472
     */
473
    public function setPhone(string $phone) : void
474
    {
475
        $this->phone = $phone;
476
    }
477
478
    /**
479
     * @return string
480
     */
481 1
    public function getCustomValue3() : string
482
    {
483 1
        return $this->customValue3;
484
    }
485
486
    /**
487
     * @param string $customValue3
488
     */
489
    public function setCustomValue3(string $customValue3) : void
490
    {
491
        $this->customValue3 = $customValue3;
492
    }
493
494
    /**
495
     * @return string
496
     */
497 1
    public function getCustomValue4() : string
498
    {
499 1
        return $this->customValue4;
500
    }
501
502
    /**
503
     * @param string $customValue4
504
     */
505
    public function setCustomValue4(string $customValue4) : void
506
    {
507
        $this->customValue4 = $customValue4;
508
    }
509
510
    /**
511
     * @return string
512
     */
513
    public function getShippingAddress1() : string
514
    {
515
        return $this->shippingAddress1;
516
    }
517
518
    /**
519
     * @param string $shippingAddress1
520
     */
521
    public function setShippingAddress1(string $shippingAddress1) : void
522
    {
523
        $this->shippingAddress1 = $shippingAddress1;
524
    }
525
526
    /**
527
     * @return string
528
     */
529
    public function getShippingAddress2() : string
530
    {
531
        return $this->shippingAddress2;
532
    }
533
534
    /**
535
     * @param string $shippingAddress2
536
     */
537
    public function setShippingAddress2(string $shippingAddress2) : void
538
    {
539
        $this->shippingAddress2 = $shippingAddress2;
540
    }
541
542
    /**
543
     * @return string
544
     */
545
    public function getShippingCity() : string
546
    {
547
        return $this->shippingCity;
548
    }
549
550
    /**
551
     * @param string $shippingCity
552
     */
553
    public function setShippingCity(string $shippingCity) : void
554
    {
555
        $this->shippingCity = $shippingCity;
556
    }
557
558
    /**
559
     * @return string
560
     */
561
    public function getShippingState() : string
562
    {
563
        return $this->shippingState;
564
    }
565
566
    /**
567
     * @param string $shippingState
568
     */
569
    public function setShippingState(string $shippingState) : void
570
    {
571
        $this->shippingState = $shippingState;
572
    }
573
574
    /**
575
     * @return string
576
     */
577
    public function getShippingPostalCode() : string
578
    {
579
        return $this->shippingPostalCode;
580
    }
581
582
    /**
583
     * @param string $shippingPostalCode
584
     */
585
    public function setShippingPostalCode(string $shippingPostalCode) : void
586
    {
587
        $this->shippingPostalCode = $shippingPostalCode;
588
    }
589
590
    /**
591
     * @return string
592
     */
593
    public function getShippingCountryId() : string
594
    {
595
        return $this->shippingCountryId;
596
    }
597
598
    /**
599
     * @param string $shippingCountryId
600
     */
601
    public function setShippingCountryId(string $shippingCountryId) : void
602
    {
603
        $this->shippingCountryId = $shippingCountryId;
604
    }
605
606
    /**
607
     * @return float|int
608
     */
609
    public function getCreditBalance() : float|int
610
    {
611
        return $this->creditBalance;
612
    }
613
614
    /**
615
     * @param float|int $creditBalance
616
     */
617
    public function setCreditBalance(float|int $creditBalance) : void
618
    {
619
        $this->creditBalance = $creditBalance;
620
    }
621
622
    /**
623
     * @return array
624
     */
625
    public function getDocuments() : array
626
    {
627
        return $this->documents;
628
    }
629
630
    /**
631
     * @param array $documents
632
     */
633
    public function setDocuments(array $documents) : void
634
    {
635
        $this->documents = $documents;
636
    }
637
638
    /**
639
     * @return array
640
     */
641
    public function getGatewayTokens() : array
642
    {
643
        return $this->gatewayTokens;
644
    }
645
646
    /**
647
     * @param array $gatewayTokens
648
     */
649
    public function setGatewayTokens(array $gatewayTokens) : void
650
    {
651
        $this->gatewayTokens = $gatewayTokens;
652
    }
653
}
654