Passed
Push — master ( 17481c...d9f781 )
by Reyo
02:57
created

Invoice::getTotalExTaxWithoutExchangeRate()   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
nc 1
nop 0
dl 0
loc 3
ccs 0
cts 3
cp 0
crap 2
rs 10
c 0
b 0
f 0
1
<?php
2
3
declare(strict_types=1);
4
5
/*
6
 * This file is part of the timechimp bundle package.
7
 * (c) Connect Holland.
8
 */
9
10
namespace ConnectHolland\TimechimpBundle\Api\Model;
11
12
class Invoice
13
{
14
    /**
15
     * @var int
16
     */
17
    protected $id;
18
    /**
19
     * @var string
20
     */
21
    protected $clientId;
22
    /**
23
     * @var string
24
     */
25
    protected $companyInvoicePrefix;
26
    /**
27
     * @var int
28
     */
29
    protected $companyInvoiceId;
30
    /**
31
     * @var int
32
     */
33
    protected $customerId;
34
    /**
35
     * 1 = Concept, 2 = Open, 3 = Paid.
36
     *
37
     * @var int
38
     */
39
    protected $status;
40
    /**
41
     * @var string
42
     */
43
    protected $customerRelationId;
44
    /**
45
     * @var string
46
     */
47
    protected $customerName;
48
    /**
49
     * @var string
50
     */
51
    protected $customerContactPerson;
52
    /**
53
     * @var string
54
     */
55
    protected $customerEmail;
56
    /**
57
     * @var string
58
     */
59
    protected $customerAddress;
60
    /**
61
     * @var string
62
     */
63
    protected $customerVatNumber;
64
    /**
65
     * @var \DateTime
66
     */
67
    protected $date;
68
    /**
69
     * @var \DateTime
70
     */
71
    protected $dueDate;
72
    /**
73
     * @var string
74
     */
75
    protected $reference;
76
    /**
77
     * @var string
78
     */
79
    protected $notes;
80
    /**
81
     * @var float
82
     */
83
    protected $total;
84
    /**
85
     * @var float
86
     */
87
    protected $totalWithoutExchangeRate;
88
    /**
89
     * @var float
90
     */
91
    protected $totalExTax;
92
    /**
93
     * @var float
94
     */
95
    protected $totalExTaxWithoutExchangeRate;
96
    /**
97
     * @var string
98
     */
99
    protected $additionalNotes;
100
    /**
101
     * @var string
102
     */
103
    protected $internNotes;
104
    /**
105
     * @var string
106
     */
107
    protected $currency;
108
    /**
109
     * @var string
110
     */
111
    protected $language;
112
    /**
113
     * @var float
114
     */
115
    protected $exchangeRate;
116
    /**
117
     * @var bool
118
     */
119
    protected $credit;
120
    /**
121
     * @var InvoiceRow[]
122
     */
123
    protected $invoiceRows;
124
125
    public function getId(): int
126
    {
127
        return $this->id;
128
    }
129
130
    public function setId(int $id): self
131
    {
132
        $this->id = $id;
133
134
        return $this;
135
    }
136
137
    public function getClientId(): string
138
    {
139
        return $this->clientId;
140
    }
141
142
    public function setClientId(string $clientId): self
143
    {
144
        $this->clientId = $clientId;
145
146
        return $this;
147
    }
148
149
    public function getCompanyInvoicePrefix(): string
150
    {
151
        return $this->companyInvoicePrefix;
152
    }
153
154
    public function setCompanyInvoicePrefix(string $companyInvoicePrefix): self
155
    {
156
        $this->companyInvoicePrefix = $companyInvoicePrefix;
157
158
        return $this;
159
    }
160
161
    public function getCompanyInvoiceId(): int
162
    {
163
        return $this->companyInvoiceId;
164
    }
165
166
    public function setCompanyInvoiceId(int $companyInvoiceId): self
167
    {
168
        $this->companyInvoiceId = $companyInvoiceId;
169
170
        return $this;
171
    }
172
173
    public function getCustomerId(): int
174
    {
175
        return $this->customerId;
176
    }
177
178
    public function setCustomerId(int $customerId): self
179
    {
180
        $this->customerId = $customerId;
181
182
        return $this;
183
    }
184
185
    /**
186
     * 1 = Concept, 2 = Open, 3 = Paid.
187
     */
188
    public function getStatus(): int
189
    {
190
        return $this->status;
191
    }
192
193
    /**
194
     * 1 = Concept, 2 = Open, 3 = Paid.
195
     */
196
    public function setStatus(int $status): self
197
    {
198
        $this->status = $status;
199
200
        return $this;
201
    }
202
203
    public function getCustomerRelationId(): string
204
    {
205
        return $this->customerRelationId;
206
    }
207
208
    public function setCustomerRelationId(string $customerRelationId): self
209
    {
210
        $this->customerRelationId = $customerRelationId;
211
212
        return $this;
213
    }
214
215
    public function getCustomerName(): string
216
    {
217
        return $this->customerName;
218
    }
219
220
    public function setCustomerName(string $customerName): self
221
    {
222
        $this->customerName = $customerName;
223
224
        return $this;
225
    }
226
227
    public function getCustomerContactPerson(): string
228
    {
229
        return $this->customerContactPerson;
230
    }
231
232
    public function setCustomerContactPerson(string $customerContactPerson): self
233
    {
234
        $this->customerContactPerson = $customerContactPerson;
235
236
        return $this;
237
    }
238
239
    public function getCustomerEmail(): string
240
    {
241
        return $this->customerEmail;
242
    }
243
244
    public function setCustomerEmail(string $customerEmail): self
245
    {
246
        $this->customerEmail = $customerEmail;
247
248
        return $this;
249
    }
250
251
    public function getCustomerAddress(): string
252
    {
253
        return $this->customerAddress;
254
    }
255
256
    public function setCustomerAddress(string $customerAddress): self
257
    {
258
        $this->customerAddress = $customerAddress;
259
260
        return $this;
261
    }
262
263
    public function getCustomerVatNumber(): string
264
    {
265
        return $this->customerVatNumber;
266
    }
267
268
    public function setCustomerVatNumber(string $customerVatNumber): self
269
    {
270
        $this->customerVatNumber = $customerVatNumber;
271
272
        return $this;
273
    }
274
275
    public function getDate(): \DateTime
276
    {
277
        return $this->date;
278
    }
279
280
    public function setDate(\DateTime $date): self
281
    {
282
        $this->date = $date;
283
284
        return $this;
285
    }
286
287
    public function getDueDate(): \DateTime
288
    {
289
        return $this->dueDate;
290
    }
291
292
    public function setDueDate(\DateTime $dueDate): self
293
    {
294
        $this->dueDate = $dueDate;
295
296
        return $this;
297
    }
298
299
    public function getReference(): string
300
    {
301
        return $this->reference;
302
    }
303
304
    public function setReference(string $reference): self
305
    {
306
        $this->reference = $reference;
307
308
        return $this;
309
    }
310
311
    public function getNotes(): string
312
    {
313
        return $this->notes;
314
    }
315
316
    public function setNotes(string $notes): self
317
    {
318
        $this->notes = $notes;
319
320
        return $this;
321
    }
322
323
    public function getTotal(): float
324
    {
325
        return $this->total;
326
    }
327
328
    public function setTotal(float $total): self
329
    {
330
        $this->total = $total;
331
332
        return $this;
333
    }
334
335
    public function getTotalWithoutExchangeRate(): float
336
    {
337
        return $this->totalWithoutExchangeRate;
338
    }
339
340
    public function setTotalWithoutExchangeRate(float $totalWithoutExchangeRate): self
341
    {
342
        $this->totalWithoutExchangeRate = $totalWithoutExchangeRate;
343
344
        return $this;
345
    }
346
347
    public function getTotalExTax(): float
348
    {
349
        return $this->totalExTax;
350
    }
351
352
    public function setTotalExTax(float $totalExTax): self
353
    {
354
        $this->totalExTax = $totalExTax;
355
356
        return $this;
357
    }
358
359
    public function getTotalExTaxWithoutExchangeRate(): float
360
    {
361
        return $this->totalExTaxWithoutExchangeRate;
362
    }
363
364
    public function setTotalExTaxWithoutExchangeRate(float $totalExTaxWithoutExchangeRate): self
365
    {
366
        $this->totalExTaxWithoutExchangeRate = $totalExTaxWithoutExchangeRate;
367
368
        return $this;
369
    }
370
371
    public function getAdditionalNotes(): string
372
    {
373
        return $this->additionalNotes;
374
    }
375
376
    public function setAdditionalNotes(string $additionalNotes): self
377
    {
378
        $this->additionalNotes = $additionalNotes;
379
380
        return $this;
381
    }
382
383
    public function getInternNotes(): string
384
    {
385
        return $this->internNotes;
386
    }
387
388
    public function setInternNotes(string $internNotes): self
389
    {
390
        $this->internNotes = $internNotes;
391
392
        return $this;
393
    }
394
395
    public function getCurrency(): string
396
    {
397
        return $this->currency;
398
    }
399
400
    public function setCurrency(string $currency): self
401
    {
402
        $this->currency = $currency;
403
404
        return $this;
405
    }
406
407
    public function getLanguage(): string
408
    {
409
        return $this->language;
410
    }
411
412
    public function setLanguage(string $language): self
413
    {
414
        $this->language = $language;
415
416
        return $this;
417
    }
418
419
    public function getExchangeRate(): float
420
    {
421
        return $this->exchangeRate;
422
    }
423
424
    public function setExchangeRate(float $exchangeRate): self
425
    {
426
        $this->exchangeRate = $exchangeRate;
427
428
        return $this;
429
    }
430
431
    public function getCredit(): bool
432
    {
433
        return $this->credit;
434
    }
435
436
    public function setCredit(bool $credit): self
437
    {
438
        $this->credit = $credit;
439
440
        return $this;
441
    }
442
443
    /**
444
     * @return InvoiceRow[]
445
     */
446
    public function getInvoiceRows(): array
447
    {
448
        return $this->invoiceRows;
449
    }
450
451
    /**
452
     * @param InvoiceRow[] $invoiceRows
453
     */
454
    public function setInvoiceRows(array $invoiceRows): self
455
    {
456
        $this->invoiceRows = $invoiceRows;
457
458
        return $this;
459
    }
460
}
461