Client::getCustomValue3()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 2
CRAP Score 1

Importance

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