1
|
|
|
<?php |
2
|
|
|
|
3
|
|
|
namespace InvoiceNinjaModule\Model; |
4
|
|
|
|
5
|
|
|
use InvoiceNinjaModule\Model\Interfaces\InvoiceInterface; |
6
|
|
|
|
7
|
|
|
class Invoice extends Base implements InvoiceInterface |
8
|
|
|
{ |
9
|
|
|
const STATUS_DRAFT = 1; |
10
|
|
|
const STATUS_SENT = 2; |
11
|
|
|
const STATUS_VIEWED = 3; |
12
|
|
|
const STATUS_APPROVED = 4; |
13
|
|
|
const STATUS_PARTIAL = 5; |
14
|
|
|
const STATUS_PAID = 6; |
15
|
|
|
const STATUS_OVERDUE = -1; |
16
|
|
|
const STATUS_UNPAID = -2; |
17
|
|
|
|
18
|
|
|
const TYPE_STANDARD = 1; |
19
|
|
|
const TYPE_QUOTE = 2; |
20
|
|
|
|
21
|
|
|
const FREQUENCY_WEEKLY = 1; |
22
|
|
|
const FREQUENCY_TWO_WEEKS = 2; |
23
|
|
|
const FREQUENCY_FOUR_WEEKS = 3; |
24
|
|
|
const FREQUENCY_MONTHLY = 4; |
25
|
|
|
const FREQUENCY_TWO_MONTHS = 5; |
26
|
|
|
const FREQUENCY_THREE_MONTHS = 6; |
27
|
|
|
const FREQUENCY_SIX_MONTHS = 7; |
28
|
|
|
const FREQUENCY_ANNUALLY = 8; |
29
|
|
|
|
30
|
|
|
const INVOICE_NR = 'invoice_number'; |
31
|
|
|
|
32
|
|
|
/** @var double */ |
33
|
|
|
private $amount; |
34
|
|
|
/** @var double */ |
35
|
|
|
private $balance; |
36
|
|
|
/** @var int */ |
37
|
|
|
private $clientId; |
38
|
|
|
/** @var int */ |
39
|
|
|
private $invoiceStatusId; |
40
|
|
|
/** @var string */ |
41
|
|
|
private $invoiceNumber; |
42
|
|
|
/** @var double */ |
43
|
|
|
private $discount; |
44
|
|
|
/** @var string */ |
45
|
|
|
private $poNumber; |
46
|
|
|
/** @var string */ |
47
|
|
|
private $invoiceDate; |
48
|
|
|
/** @var string */ |
49
|
|
|
private $dueDate; |
50
|
|
|
/** @var string */ |
51
|
|
|
private $terms; |
52
|
|
|
/** @var string */ |
53
|
|
|
private $publicNotes; |
54
|
|
|
/** @var int */ |
55
|
|
|
private $invoiceTypeId; |
56
|
|
|
/** @var bool */ |
57
|
|
|
private $isRecurring; |
58
|
|
|
/** @var int */ |
59
|
|
|
private $frequencyId; |
60
|
|
|
/** @var string */ |
61
|
|
|
private $startDate; |
62
|
|
|
/** @var string */ |
63
|
|
|
private $endDate; |
64
|
|
|
/** @var string */ |
65
|
|
|
private $lastSentDate; |
66
|
|
|
/** @var int */ |
67
|
|
|
private $recurringInvoiceId; |
68
|
|
|
/** @var string */ |
69
|
|
|
private $taxName1; |
70
|
|
|
/** @var double */ |
71
|
|
|
private $taxRate1; |
72
|
|
|
/** @var string */ |
73
|
|
|
private $taxName2; |
74
|
|
|
/** @var double */ |
75
|
|
|
private $taxRate2; |
76
|
|
|
/** @var bool */ |
77
|
|
|
private $isAmountDiscount; |
78
|
|
|
/** @var string */ |
79
|
|
|
private $invoiceFooter; |
80
|
|
|
/** @var double */ |
81
|
|
|
private $partial; |
82
|
|
|
/** @var bool */ |
83
|
|
|
private $hasTasks; |
84
|
|
|
/** @var bool */ |
85
|
|
|
private $autoBill; |
86
|
|
|
/** @var int */ |
87
|
|
|
private $customValue1; |
88
|
|
|
/** @var int */ |
89
|
|
|
private $customValue2; |
90
|
|
|
/** @var bool */ |
91
|
|
|
private $customTaxes1; |
92
|
|
|
/** @var bool */ |
93
|
|
|
private $customTaxes2; |
94
|
|
|
/** @var bool */ |
95
|
|
|
private $hasExpenses; |
96
|
|
|
/** @var int */ |
97
|
|
|
private $quoteInvoiceId; |
98
|
|
|
/** @var string */ |
99
|
|
|
private $customTextValue1; |
100
|
|
|
/** @var string */ |
101
|
|
|
private $customTextValue2; |
102
|
|
|
/** @var bool */ |
103
|
|
|
private $isQuote; |
104
|
|
|
/** @var bool */ |
105
|
|
|
private $isPublic; |
106
|
|
|
/** @var InvoiceItem[] */ |
107
|
|
|
private $invoiceItems; |
108
|
|
|
|
109
|
|
|
/** |
110
|
|
|
* @return float |
111
|
|
|
*/ |
112
|
|
|
public function getAmount() |
113
|
|
|
{ |
114
|
|
|
return $this->amount; |
115
|
|
|
} |
116
|
|
|
|
117
|
|
|
/** |
118
|
|
|
* @param float $amount |
119
|
|
|
*/ |
120
|
|
|
public function setAmount($amount) |
121
|
|
|
{ |
122
|
|
|
$this->amount = $amount; |
123
|
|
|
} |
124
|
|
|
|
125
|
|
|
/** |
126
|
|
|
* @return float |
127
|
|
|
*/ |
128
|
|
|
public function getBalance() |
129
|
|
|
{ |
130
|
|
|
return $this->balance; |
131
|
|
|
} |
132
|
|
|
|
133
|
|
|
/** |
134
|
|
|
* @param float $balance |
135
|
|
|
*/ |
136
|
|
|
public function setBalance($balance) |
137
|
|
|
{ |
138
|
|
|
$this->balance = $balance; |
139
|
|
|
} |
140
|
|
|
|
141
|
|
|
/** |
142
|
|
|
* @return int |
143
|
|
|
*/ |
144
|
|
|
public function getClientId() |
145
|
|
|
{ |
146
|
|
|
return $this->clientId; |
147
|
|
|
} |
148
|
|
|
|
149
|
|
|
/** |
150
|
|
|
* @param int $clientId |
151
|
|
|
*/ |
152
|
|
|
public function setClientId($clientId) |
153
|
|
|
{ |
154
|
|
|
$this->clientId = $clientId; |
155
|
|
|
} |
156
|
|
|
|
157
|
|
|
/** |
158
|
|
|
* @return int |
159
|
|
|
*/ |
160
|
|
|
public function getInvoiceStatusId() |
161
|
|
|
{ |
162
|
|
|
return $this->invoiceStatusId; |
163
|
|
|
} |
164
|
|
|
|
165
|
|
|
/** |
166
|
|
|
* @param int $invoiceStatusId |
167
|
|
|
*/ |
168
|
|
|
public function setInvoiceStatusId($invoiceStatusId) |
169
|
|
|
{ |
170
|
|
|
$this->invoiceStatusId = $invoiceStatusId; |
171
|
|
|
} |
172
|
|
|
|
173
|
|
|
/** |
174
|
|
|
* @return string |
175
|
|
|
*/ |
176
|
|
|
public function getInvoiceNumber() |
177
|
|
|
{ |
178
|
|
|
return $this->invoiceNumber; |
179
|
|
|
} |
180
|
|
|
|
181
|
|
|
/** |
182
|
|
|
* @param string $invoiceNumber |
183
|
|
|
*/ |
184
|
|
|
public function setInvoiceNumber($invoiceNumber) |
185
|
|
|
{ |
186
|
|
|
$this->invoiceNumber = $invoiceNumber; |
187
|
|
|
} |
188
|
|
|
|
189
|
|
|
/** |
190
|
|
|
* @return float |
191
|
|
|
*/ |
192
|
|
|
public function getDiscount() |
193
|
|
|
{ |
194
|
|
|
return $this->discount; |
195
|
|
|
} |
196
|
|
|
|
197
|
|
|
/** |
198
|
|
|
* @param float $discount |
199
|
|
|
*/ |
200
|
|
|
public function setDiscount($discount) |
201
|
|
|
{ |
202
|
|
|
$this->discount = $discount; |
203
|
|
|
} |
204
|
|
|
|
205
|
|
|
/** |
206
|
|
|
* @return string |
207
|
|
|
*/ |
208
|
|
|
public function getPoNumber() |
209
|
|
|
{ |
210
|
|
|
return $this->poNumber; |
211
|
|
|
} |
212
|
|
|
|
213
|
|
|
/** |
214
|
|
|
* @param string $poNumber |
215
|
|
|
*/ |
216
|
|
|
public function setPoNumber($poNumber) |
217
|
|
|
{ |
218
|
|
|
$this->poNumber = $poNumber; |
219
|
|
|
} |
220
|
|
|
|
221
|
|
|
/** |
222
|
|
|
* @return string |
223
|
|
|
*/ |
224
|
|
|
public function getInvoiceDate() |
225
|
|
|
{ |
226
|
|
|
return $this->invoiceDate; |
227
|
|
|
} |
228
|
|
|
|
229
|
|
|
/** |
230
|
|
|
* @param string $invoiceDate |
231
|
|
|
*/ |
232
|
|
|
public function setInvoiceDate($invoiceDate) |
233
|
|
|
{ |
234
|
|
|
$this->invoiceDate = $invoiceDate; |
235
|
|
|
} |
236
|
|
|
|
237
|
|
|
/** |
238
|
|
|
* @return string |
239
|
|
|
*/ |
240
|
|
|
public function getDueDate() |
241
|
|
|
{ |
242
|
|
|
return $this->dueDate; |
243
|
|
|
} |
244
|
|
|
|
245
|
|
|
/** |
246
|
|
|
* @param string $dueDate |
247
|
|
|
*/ |
248
|
|
|
public function setDueDate($dueDate) |
249
|
|
|
{ |
250
|
|
|
$this->dueDate = $dueDate; |
251
|
|
|
} |
252
|
|
|
|
253
|
|
|
/** |
254
|
|
|
* @return string |
255
|
|
|
*/ |
256
|
|
|
public function getTerms() |
257
|
|
|
{ |
258
|
|
|
return $this->terms; |
259
|
|
|
} |
260
|
|
|
|
261
|
|
|
/** |
262
|
|
|
* @param string $terms |
263
|
|
|
*/ |
264
|
|
|
public function setTerms($terms) |
265
|
|
|
{ |
266
|
|
|
$this->terms = $terms; |
267
|
|
|
} |
268
|
|
|
|
269
|
|
|
/** |
270
|
|
|
* @return string |
271
|
|
|
*/ |
272
|
|
|
public function getPublicNotes() |
273
|
|
|
{ |
274
|
|
|
return $this->publicNotes; |
275
|
|
|
} |
276
|
|
|
|
277
|
|
|
/** |
278
|
|
|
* @param string $publicNotes |
279
|
|
|
*/ |
280
|
|
|
public function setPublicNotes($publicNotes) |
281
|
|
|
{ |
282
|
|
|
$this->publicNotes = $publicNotes; |
283
|
|
|
} |
284
|
|
|
|
285
|
|
|
/** |
286
|
|
|
* @return int |
287
|
|
|
*/ |
288
|
|
|
public function getInvoiceTypeId() |
289
|
|
|
{ |
290
|
|
|
return $this->invoiceTypeId; |
291
|
|
|
} |
292
|
|
|
|
293
|
|
|
/** |
294
|
|
|
* @param int $invoiceTypeId |
295
|
|
|
*/ |
296
|
|
|
public function setInvoiceTypeId($invoiceTypeId) |
297
|
|
|
{ |
298
|
|
|
$this->invoiceTypeId = $invoiceTypeId; |
299
|
|
|
} |
300
|
|
|
|
301
|
|
|
/** |
302
|
|
|
* @return bool |
303
|
|
|
*/ |
304
|
|
|
public function isRecurring() |
305
|
|
|
{ |
306
|
|
|
return $this->isRecurring; |
307
|
|
|
} |
308
|
|
|
|
309
|
|
|
/** |
310
|
|
|
* @param bool $isRecurring |
311
|
|
|
*/ |
312
|
|
|
public function setRecurring($isRecurring) |
313
|
|
|
{ |
314
|
|
|
$this->isRecurring = $isRecurring; |
315
|
|
|
} |
316
|
|
|
|
317
|
|
|
/** |
318
|
|
|
* @return int |
319
|
|
|
*/ |
320
|
|
|
public function getFrequencyId() |
321
|
|
|
{ |
322
|
|
|
return $this->frequencyId; |
323
|
|
|
} |
324
|
|
|
|
325
|
|
|
/** |
326
|
|
|
* @param int $frequencyId |
327
|
|
|
*/ |
328
|
|
|
public function setFrequencyId($frequencyId) |
329
|
|
|
{ |
330
|
|
|
$this->frequencyId = $frequencyId; |
331
|
|
|
} |
332
|
|
|
|
333
|
|
|
/** |
334
|
|
|
* @return string |
335
|
|
|
*/ |
336
|
|
|
public function getStartDate() |
337
|
|
|
{ |
338
|
|
|
return $this->startDate; |
339
|
|
|
} |
340
|
|
|
|
341
|
|
|
/** |
342
|
|
|
* @param string $startDate |
343
|
|
|
*/ |
344
|
|
|
public function setStartDate($startDate) |
345
|
|
|
{ |
346
|
|
|
$this->startDate = $startDate; |
347
|
|
|
} |
348
|
|
|
|
349
|
|
|
/** |
350
|
|
|
* @return string |
351
|
|
|
*/ |
352
|
|
|
public function getEndDate() |
353
|
|
|
{ |
354
|
|
|
return $this->endDate; |
355
|
|
|
} |
356
|
|
|
|
357
|
|
|
/** |
358
|
|
|
* @param string $endDate |
359
|
|
|
*/ |
360
|
|
|
public function setEndDate($endDate) |
361
|
|
|
{ |
362
|
|
|
$this->endDate = $endDate; |
363
|
|
|
} |
364
|
|
|
|
365
|
|
|
/** |
366
|
|
|
* @return string |
367
|
|
|
*/ |
368
|
|
|
public function getLastSentDate() |
369
|
|
|
{ |
370
|
|
|
return $this->lastSentDate; |
371
|
|
|
} |
372
|
|
|
|
373
|
|
|
/** |
374
|
|
|
* @param string $lastSentDate |
375
|
|
|
*/ |
376
|
|
|
public function setLastSentDate($lastSentDate) |
377
|
|
|
{ |
378
|
|
|
$this->lastSentDate = $lastSentDate; |
379
|
|
|
} |
380
|
|
|
|
381
|
|
|
/** |
382
|
|
|
* @return int |
383
|
|
|
*/ |
384
|
|
|
public function getRecurringInvoiceId() |
385
|
|
|
{ |
386
|
|
|
return $this->recurringInvoiceId; |
387
|
|
|
} |
388
|
|
|
|
389
|
|
|
/** |
390
|
|
|
* @param int $recurringInvoiceId |
391
|
|
|
*/ |
392
|
|
|
public function setRecurringInvoiceId($recurringInvoiceId) |
393
|
|
|
{ |
394
|
|
|
$this->recurringInvoiceId = $recurringInvoiceId; |
395
|
|
|
} |
396
|
|
|
|
397
|
|
|
/** |
398
|
|
|
* @return string |
399
|
|
|
*/ |
400
|
|
|
public function getTaxName1() |
401
|
|
|
{ |
402
|
|
|
return $this->taxName1; |
403
|
|
|
} |
404
|
|
|
|
405
|
|
|
/** |
406
|
|
|
* @param string $taxName1 |
407
|
|
|
*/ |
408
|
|
|
public function setTaxName1($taxName1) |
409
|
|
|
{ |
410
|
|
|
$this->taxName1 = $taxName1; |
411
|
|
|
} |
412
|
|
|
|
413
|
|
|
/** |
414
|
|
|
* @return float |
415
|
|
|
*/ |
416
|
|
|
public function getTaxRate1() |
417
|
|
|
{ |
418
|
|
|
return $this->taxRate1; |
419
|
|
|
} |
420
|
|
|
|
421
|
|
|
/** |
422
|
|
|
* @param float $taxRate1 |
423
|
|
|
*/ |
424
|
|
|
public function setTaxRate1($taxRate1) |
425
|
|
|
{ |
426
|
|
|
$this->taxRate1 = $taxRate1; |
427
|
|
|
} |
428
|
|
|
|
429
|
|
|
/** |
430
|
|
|
* @return string |
431
|
|
|
*/ |
432
|
|
|
public function getTaxName2() |
433
|
|
|
{ |
434
|
|
|
return $this->taxName2; |
435
|
|
|
} |
436
|
|
|
|
437
|
|
|
/** |
438
|
|
|
* @param string $taxName2 |
439
|
|
|
*/ |
440
|
|
|
public function setTaxName2($taxName2) |
441
|
|
|
{ |
442
|
|
|
$this->taxName2 = $taxName2; |
443
|
|
|
} |
444
|
|
|
|
445
|
|
|
/** |
446
|
|
|
* @return float |
447
|
|
|
*/ |
448
|
|
|
public function getTaxRate2() |
449
|
|
|
{ |
450
|
|
|
return $this->taxRate2; |
451
|
|
|
} |
452
|
|
|
|
453
|
|
|
/** |
454
|
|
|
* @param float $taxRate2 |
455
|
|
|
*/ |
456
|
|
|
public function setTaxRate2($taxRate2) |
457
|
|
|
{ |
458
|
|
|
$this->taxRate2 = $taxRate2; |
459
|
|
|
} |
460
|
|
|
|
461
|
|
|
/** |
462
|
|
|
* @return bool |
463
|
|
|
*/ |
464
|
|
|
public function isAmountDiscount() |
465
|
|
|
{ |
466
|
|
|
return $this->isAmountDiscount; |
467
|
|
|
} |
468
|
|
|
|
469
|
|
|
/** |
470
|
|
|
* @param bool $isAmountDiscount |
471
|
|
|
*/ |
472
|
|
|
public function setAmountDiscount($isAmountDiscount) |
473
|
|
|
{ |
474
|
|
|
$this->isAmountDiscount = $isAmountDiscount; |
475
|
|
|
} |
476
|
|
|
|
477
|
|
|
/** |
478
|
|
|
* @return string |
479
|
|
|
*/ |
480
|
|
|
public function getInvoiceFooter() |
481
|
|
|
{ |
482
|
|
|
return $this->invoiceFooter; |
483
|
|
|
} |
484
|
|
|
|
485
|
|
|
/** |
486
|
|
|
* @param string $invoiceFooter |
487
|
|
|
*/ |
488
|
|
|
public function setInvoiceFooter($invoiceFooter) |
489
|
|
|
{ |
490
|
|
|
$this->invoiceFooter = $invoiceFooter; |
491
|
|
|
} |
492
|
|
|
|
493
|
|
|
/** |
494
|
|
|
* @return float |
495
|
|
|
*/ |
496
|
|
|
public function getPartial() |
497
|
|
|
{ |
498
|
|
|
return $this->partial; |
499
|
|
|
} |
500
|
|
|
|
501
|
|
|
/** |
502
|
|
|
* @param float $partial |
503
|
|
|
*/ |
504
|
|
|
public function setPartial($partial) |
505
|
|
|
{ |
506
|
|
|
$this->partial = $partial; |
507
|
|
|
} |
508
|
|
|
|
509
|
|
|
/** |
510
|
|
|
* @return bool |
511
|
|
|
*/ |
512
|
|
|
public function hasTasks() |
513
|
|
|
{ |
514
|
|
|
return $this->hasTasks; |
515
|
|
|
} |
516
|
|
|
|
517
|
|
|
/** |
518
|
|
|
* @param bool $hasTasks |
519
|
|
|
*/ |
520
|
|
|
public function setHasTasks($hasTasks) |
521
|
|
|
{ |
522
|
|
|
$this->hasTasks = $hasTasks; |
523
|
|
|
} |
524
|
|
|
|
525
|
|
|
/** |
526
|
|
|
* @return bool |
527
|
|
|
*/ |
528
|
|
|
public function isAutoBill() |
529
|
|
|
{ |
530
|
|
|
return $this->autoBill; |
531
|
|
|
} |
532
|
|
|
|
533
|
|
|
/** |
534
|
|
|
* @param bool $autoBill |
535
|
|
|
*/ |
536
|
|
|
public function setAutoBill($autoBill) |
537
|
|
|
{ |
538
|
|
|
$this->autoBill = $autoBill; |
539
|
|
|
} |
540
|
|
|
|
541
|
|
|
/** |
542
|
|
|
* @return int |
543
|
|
|
*/ |
544
|
|
|
public function getCustomValue1() |
545
|
|
|
{ |
546
|
|
|
return $this->customValue1; |
547
|
|
|
} |
548
|
|
|
|
549
|
|
|
/** |
550
|
|
|
* @param int $customValue1 |
551
|
|
|
*/ |
552
|
|
|
public function setCustomValue1($customValue1) |
553
|
|
|
{ |
554
|
|
|
$this->customValue1 = $customValue1; |
555
|
|
|
} |
556
|
|
|
|
557
|
|
|
/** |
558
|
|
|
* @return int |
559
|
|
|
*/ |
560
|
|
|
public function getCustomValue2() |
561
|
|
|
{ |
562
|
|
|
return $this->customValue2; |
563
|
|
|
} |
564
|
|
|
|
565
|
|
|
/** |
566
|
|
|
* @param int $customValue2 |
567
|
|
|
*/ |
568
|
|
|
public function setCustomValue2($customValue2) |
569
|
|
|
{ |
570
|
|
|
$this->customValue2 = $customValue2; |
571
|
|
|
} |
572
|
|
|
|
573
|
|
|
/** |
574
|
|
|
* @return bool |
575
|
|
|
*/ |
576
|
|
|
public function isCustomTaxes1() |
577
|
|
|
{ |
578
|
|
|
return $this->customTaxes1; |
579
|
|
|
} |
580
|
|
|
|
581
|
|
|
/** |
582
|
|
|
* @param bool $customTaxes1 |
583
|
|
|
*/ |
584
|
|
|
public function setCustomTaxes1($customTaxes1) |
585
|
|
|
{ |
586
|
|
|
$this->customTaxes1 = $customTaxes1; |
587
|
|
|
} |
588
|
|
|
|
589
|
|
|
/** |
590
|
|
|
* @return bool |
591
|
|
|
*/ |
592
|
|
|
public function isCustomTaxes2() |
593
|
|
|
{ |
594
|
|
|
return $this->customTaxes2; |
595
|
|
|
} |
596
|
|
|
|
597
|
|
|
/** |
598
|
|
|
* @param bool $customTaxes2 |
599
|
|
|
*/ |
600
|
|
|
public function setCustomTaxes2($customTaxes2) |
601
|
|
|
{ |
602
|
|
|
$this->customTaxes2 = $customTaxes2; |
603
|
|
|
} |
604
|
|
|
|
605
|
|
|
/** |
606
|
|
|
* @return bool |
607
|
|
|
*/ |
608
|
|
|
public function hasExpenses() |
609
|
|
|
{ |
610
|
|
|
return $this->hasExpenses; |
611
|
|
|
} |
612
|
|
|
|
613
|
|
|
/** |
614
|
|
|
* @param bool $hasExpenses |
615
|
|
|
*/ |
616
|
|
|
public function setHasExpenses($hasExpenses) |
617
|
|
|
{ |
618
|
|
|
$this->hasExpenses = $hasExpenses; |
619
|
|
|
} |
620
|
|
|
|
621
|
|
|
/** |
622
|
|
|
* @return int |
623
|
|
|
*/ |
624
|
|
|
public function getQuoteInvoiceId() |
625
|
|
|
{ |
626
|
|
|
return $this->quoteInvoiceId; |
627
|
|
|
} |
628
|
|
|
|
629
|
|
|
/** |
630
|
|
|
* @param int $quoteInvoiceId |
631
|
|
|
*/ |
632
|
|
|
public function setQuoteInvoiceId($quoteInvoiceId) |
633
|
|
|
{ |
634
|
|
|
$this->quoteInvoiceId = $quoteInvoiceId; |
635
|
|
|
} |
636
|
|
|
|
637
|
|
|
/** |
638
|
|
|
* @return string |
639
|
|
|
*/ |
640
|
|
|
public function getCustomTextValue1() |
641
|
|
|
{ |
642
|
|
|
return $this->customTextValue1; |
643
|
|
|
} |
644
|
|
|
|
645
|
|
|
/** |
646
|
|
|
* @param string $customTextValue1 |
647
|
|
|
*/ |
648
|
|
|
public function setCustomTextValue1($customTextValue1) |
649
|
|
|
{ |
650
|
|
|
$this->customTextValue1 = $customTextValue1; |
651
|
|
|
} |
652
|
|
|
|
653
|
|
|
/** |
654
|
|
|
* @return string |
655
|
|
|
*/ |
656
|
|
|
public function getCustomTextValue2() |
657
|
|
|
{ |
658
|
|
|
return $this->customTextValue2; |
659
|
|
|
} |
660
|
|
|
|
661
|
|
|
/** |
662
|
|
|
* @param string $customTextValue2 |
663
|
|
|
*/ |
664
|
|
|
public function setCustomTextValue2($customTextValue2) |
665
|
|
|
{ |
666
|
|
|
$this->customTextValue2 = $customTextValue2; |
667
|
|
|
} |
668
|
|
|
|
669
|
|
|
/** |
670
|
|
|
* @return bool |
671
|
|
|
*/ |
672
|
|
|
public function isQuote() |
673
|
|
|
{ |
674
|
|
|
return $this->isQuote; |
675
|
|
|
} |
676
|
|
|
|
677
|
|
|
/** |
678
|
|
|
* @param bool $isQuote |
679
|
|
|
*/ |
680
|
|
|
public function setQuote($isQuote) |
681
|
|
|
{ |
682
|
|
|
$this->isQuote = $isQuote; |
683
|
|
|
} |
684
|
|
|
|
685
|
|
|
/** |
686
|
|
|
* @return bool |
687
|
|
|
*/ |
688
|
|
|
public function isPublic() |
689
|
|
|
{ |
690
|
|
|
return $this->isPublic; |
691
|
|
|
} |
692
|
|
|
|
693
|
|
|
/** |
694
|
|
|
* @param bool $isPublic |
695
|
|
|
*/ |
696
|
|
|
public function setPublic($isPublic) |
697
|
|
|
{ |
698
|
|
|
$this->isPublic = $isPublic; |
699
|
|
|
} |
700
|
|
|
|
701
|
|
|
/** |
702
|
|
|
* @return InvoiceItem[] |
703
|
|
|
*/ |
704
|
|
|
public function getInvoiceItems() |
705
|
|
|
{ |
706
|
|
|
return $this->invoiceItems; |
707
|
|
|
} |
708
|
|
|
|
709
|
|
|
/** |
710
|
|
|
* @param InvoiceItem[] $invoiceItems |
711
|
|
|
*/ |
712
|
|
|
public function setInvoiceItems($invoiceItems) |
713
|
|
|
{ |
714
|
|
|
$this->invoiceItems = $invoiceItems; |
715
|
|
|
} |
716
|
|
|
} |
717
|
|
|
|