1
|
|
|
<?php |
2
|
|
|
|
3
|
|
|
/* |
4
|
|
|
* This file is part of datamolino client. |
5
|
|
|
* |
6
|
|
|
* (c) 2018 cwd.at GmbH <[email protected]> |
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
|
|
|
declare(strict_types=1); |
13
|
|
|
|
14
|
|
|
namespace Cwd\Datamolino\Model\Document; |
15
|
|
|
|
16
|
|
|
class Header |
17
|
|
|
{ |
18
|
|
|
/** @var string|null */ |
19
|
|
|
private $locale; |
20
|
|
|
|
21
|
|
|
/** @var string|null */ |
22
|
|
|
private $invoice_text; |
23
|
|
|
|
24
|
|
|
/** @var string|null */ |
25
|
|
|
private $invoice_no; |
26
|
|
|
|
27
|
|
|
/** @var string|null */ |
28
|
|
|
private $sepa_reference; |
29
|
|
|
|
30
|
|
|
/** @var string|null */ |
31
|
|
|
private $variable_symbol; |
32
|
|
|
|
33
|
|
|
/** @var string|null */ |
34
|
|
|
private $specific_symbol; |
35
|
|
|
|
36
|
|
|
/** @var \DateTime|null */ |
37
|
|
|
private $issue_date; |
38
|
|
|
|
39
|
|
|
/** @var \DateTime|null */ |
40
|
|
|
private $tax_date; |
41
|
|
|
|
42
|
|
|
/** @var \DateTime|null */ |
43
|
|
|
private $due_date; |
44
|
|
|
|
45
|
|
|
/** @var string|null */ |
46
|
|
|
private $currency; |
47
|
|
|
|
48
|
|
|
/** @var string|null */ |
49
|
|
|
private $currency_rate; |
50
|
|
|
|
51
|
|
|
/** @var string|null */ |
52
|
|
|
private $text; |
53
|
|
|
|
54
|
|
|
/** @var string|null */ |
55
|
|
|
private $customer_no; |
56
|
|
|
|
57
|
|
|
/** @var string|null */ |
58
|
|
|
private $purchase_order_no; |
59
|
|
|
|
60
|
|
|
/** @var string|null */ |
61
|
|
|
private $reference; |
62
|
|
|
|
63
|
|
|
/** @var string|null */ |
64
|
|
|
private $delivery_note_no; |
65
|
|
|
|
66
|
|
|
/** @var string|null */ |
67
|
|
|
private $card_no; |
68
|
|
|
|
69
|
|
|
/** |
70
|
|
|
* @return null|string |
71
|
|
|
*/ |
72
|
|
|
public function getLocale(): ?string |
73
|
|
|
{ |
74
|
|
|
return $this->locale; |
75
|
|
|
} |
76
|
|
|
|
77
|
|
|
/** |
78
|
|
|
* @param null|string $locale |
79
|
|
|
* |
80
|
|
|
* @return Header |
81
|
|
|
*/ |
82
|
|
|
public function setLocale(?string $locale): Header |
83
|
|
|
{ |
84
|
|
|
$this->locale = $locale; |
85
|
|
|
|
86
|
|
|
return $this; |
87
|
|
|
} |
88
|
|
|
|
89
|
|
|
/** |
90
|
|
|
* @return null|string |
91
|
|
|
*/ |
92
|
|
|
public function getInvoiceText(): ?string |
93
|
|
|
{ |
94
|
|
|
return $this->invoice_text; |
95
|
|
|
} |
96
|
|
|
|
97
|
|
|
/** |
98
|
|
|
* @param null|string $invoice_text |
99
|
|
|
* |
100
|
|
|
* @return Header |
101
|
|
|
*/ |
102
|
|
|
public function setInvoiceText(?string $invoice_text): Header |
103
|
|
|
{ |
104
|
|
|
$this->invoice_text = $invoice_text; |
105
|
|
|
|
106
|
|
|
return $this; |
107
|
|
|
} |
108
|
|
|
|
109
|
|
|
/** |
110
|
|
|
* @return null|string |
111
|
|
|
*/ |
112
|
|
|
public function getInvoiceNo(): ?string |
113
|
|
|
{ |
114
|
|
|
return $this->invoice_no; |
115
|
|
|
} |
116
|
|
|
|
117
|
|
|
/** |
118
|
|
|
* @param null|string $invoice_no |
119
|
|
|
* |
120
|
|
|
* @return Header |
121
|
|
|
*/ |
122
|
|
|
public function setInvoiceNo(?string $invoice_no): Header |
123
|
|
|
{ |
124
|
|
|
$this->invoice_no = $invoice_no; |
125
|
|
|
|
126
|
|
|
return $this; |
127
|
|
|
} |
128
|
|
|
|
129
|
|
|
/** |
130
|
|
|
* @return null|string |
131
|
|
|
*/ |
132
|
|
|
public function getSepaReference(): ?string |
133
|
|
|
{ |
134
|
|
|
return $this->sepa_reference; |
135
|
|
|
} |
136
|
|
|
|
137
|
|
|
/** |
138
|
|
|
* @param null|string $sepa_reference |
139
|
|
|
* |
140
|
|
|
* @return Header |
141
|
|
|
*/ |
142
|
|
|
public function setSepaReference(?string $sepa_reference): Header |
143
|
|
|
{ |
144
|
|
|
$this->sepa_reference = $sepa_reference; |
145
|
|
|
|
146
|
|
|
return $this; |
147
|
|
|
} |
148
|
|
|
|
149
|
|
|
/** |
150
|
|
|
* @return null|string |
151
|
|
|
*/ |
152
|
|
|
public function getVariableSymbol(): ?string |
153
|
|
|
{ |
154
|
|
|
return $this->variable_symbol; |
155
|
|
|
} |
156
|
|
|
|
157
|
|
|
/** |
158
|
|
|
* @param null|string $variable_symbol |
159
|
|
|
* |
160
|
|
|
* @return Header |
161
|
|
|
*/ |
162
|
|
|
public function setVariableSymbol(?string $variable_symbol): Header |
163
|
|
|
{ |
164
|
|
|
$this->variable_symbol = $variable_symbol; |
165
|
|
|
|
166
|
|
|
return $this; |
167
|
|
|
} |
168
|
|
|
|
169
|
|
|
/** |
170
|
|
|
* @return null|string |
171
|
|
|
*/ |
172
|
|
|
public function getSpecificSymbol(): ?string |
173
|
|
|
{ |
174
|
|
|
return $this->specific_symbol; |
175
|
|
|
} |
176
|
|
|
|
177
|
|
|
/** |
178
|
|
|
* @param null|string $specific_symbol |
179
|
|
|
* |
180
|
|
|
* @return Header |
181
|
|
|
*/ |
182
|
|
|
public function setSpecificSymbol(?string $specific_symbol): Header |
183
|
|
|
{ |
184
|
|
|
$this->specific_symbol = $specific_symbol; |
185
|
|
|
|
186
|
|
|
return $this; |
187
|
|
|
} |
188
|
|
|
|
189
|
|
|
/** |
190
|
|
|
* @return \DateTime|null |
191
|
|
|
*/ |
192
|
|
|
public function getIssueDate(): ?\DateTime |
193
|
|
|
{ |
194
|
|
|
return $this->issue_date; |
195
|
|
|
} |
196
|
|
|
|
197
|
|
|
/** |
198
|
|
|
* @param \DateTime|null $issue_date |
199
|
|
|
* |
200
|
|
|
* @return Header |
201
|
|
|
*/ |
202
|
|
|
public function setIssueDate(?\DateTime $issue_date): Header |
203
|
|
|
{ |
204
|
|
|
$this->issue_date = $issue_date; |
205
|
|
|
|
206
|
|
|
return $this; |
207
|
|
|
} |
208
|
|
|
|
209
|
|
|
/** |
210
|
|
|
* @return \DateTime|null |
211
|
|
|
*/ |
212
|
|
|
public function getTaxDate(): ?\DateTime |
213
|
|
|
{ |
214
|
|
|
return $this->tax_date; |
215
|
|
|
} |
216
|
|
|
|
217
|
|
|
/** |
218
|
|
|
* @param \DateTime|null $tax_date |
219
|
|
|
* |
220
|
|
|
* @return Header |
221
|
|
|
*/ |
222
|
|
|
public function setTaxDate(?\DateTime $tax_date): Header |
223
|
|
|
{ |
224
|
|
|
$this->tax_date = $tax_date; |
225
|
|
|
|
226
|
|
|
return $this; |
227
|
|
|
} |
228
|
|
|
|
229
|
|
|
/** |
230
|
|
|
* @return \DateTime|null |
231
|
|
|
*/ |
232
|
|
|
public function getDueDate(): ?\DateTime |
233
|
|
|
{ |
234
|
|
|
return $this->due_date; |
235
|
|
|
} |
236
|
|
|
|
237
|
|
|
/** |
238
|
|
|
* @param \DateTime|null $due_date |
239
|
|
|
* |
240
|
|
|
* @return Header |
241
|
|
|
*/ |
242
|
|
|
public function setDueDate(?\DateTime $due_date): Header |
243
|
|
|
{ |
244
|
|
|
$this->due_date = $due_date; |
245
|
|
|
|
246
|
|
|
return $this; |
247
|
|
|
} |
248
|
|
|
|
249
|
|
|
/** |
250
|
|
|
* @return null|string |
251
|
|
|
*/ |
252
|
|
|
public function getCurrency(): ?string |
253
|
|
|
{ |
254
|
|
|
return $this->currency; |
255
|
|
|
} |
256
|
|
|
|
257
|
|
|
/** |
258
|
|
|
* @param null|string $currency |
259
|
|
|
* |
260
|
|
|
* @return Header |
261
|
|
|
*/ |
262
|
|
|
public function setCurrency(?string $currency): Header |
263
|
|
|
{ |
264
|
|
|
$this->currency = $currency; |
265
|
|
|
|
266
|
|
|
return $this; |
267
|
|
|
} |
268
|
|
|
|
269
|
|
|
/** |
270
|
|
|
* @return null|string |
271
|
|
|
*/ |
272
|
|
|
public function getCurrencyRate(): ?string |
273
|
|
|
{ |
274
|
|
|
return $this->currency_rate; |
275
|
|
|
} |
276
|
|
|
|
277
|
|
|
/** |
278
|
|
|
* @param null|string $currency_rate |
279
|
|
|
* |
280
|
|
|
* @return Header |
281
|
|
|
*/ |
282
|
|
|
public function setCurrencyRate(?string $currency_rate): Header |
283
|
|
|
{ |
284
|
|
|
$this->currency_rate = $currency_rate; |
285
|
|
|
|
286
|
|
|
return $this; |
287
|
|
|
} |
288
|
|
|
|
289
|
|
|
/** |
290
|
|
|
* @return null|string |
291
|
|
|
*/ |
292
|
|
|
public function getText(): ?string |
293
|
|
|
{ |
294
|
|
|
return $this->text; |
295
|
|
|
} |
296
|
|
|
|
297
|
|
|
/** |
298
|
|
|
* @param null|string $text |
299
|
|
|
* |
300
|
|
|
* @return Header |
301
|
|
|
*/ |
302
|
|
|
public function setText(?string $text): Header |
303
|
|
|
{ |
304
|
|
|
$this->text = $text; |
305
|
|
|
|
306
|
|
|
return $this; |
307
|
|
|
} |
308
|
|
|
|
309
|
|
|
/** |
310
|
|
|
* @return null|string |
311
|
|
|
*/ |
312
|
|
|
public function getCustomerNo(): ?string |
313
|
|
|
{ |
314
|
|
|
return $this->customer_no; |
315
|
|
|
} |
316
|
|
|
|
317
|
|
|
/** |
318
|
|
|
* @param null|string $customer_no |
319
|
|
|
* |
320
|
|
|
* @return Header |
321
|
|
|
*/ |
322
|
|
|
public function setCustomerNo(?string $customer_no): Header |
323
|
|
|
{ |
324
|
|
|
$this->customer_no = $customer_no; |
325
|
|
|
|
326
|
|
|
return $this; |
327
|
|
|
} |
328
|
|
|
|
329
|
|
|
/** |
330
|
|
|
* @return null|string |
331
|
|
|
*/ |
332
|
|
|
public function getPurchaseOrderNo(): ?string |
333
|
|
|
{ |
334
|
|
|
return $this->purchase_order_no; |
335
|
|
|
} |
336
|
|
|
|
337
|
|
|
/** |
338
|
|
|
* @param null|string $purchase_order_no |
339
|
|
|
* |
340
|
|
|
* @return Header |
341
|
|
|
*/ |
342
|
|
|
public function setPurchaseOrderNo(?string $purchase_order_no): Header |
343
|
|
|
{ |
344
|
|
|
$this->purchase_order_no = $purchase_order_no; |
345
|
|
|
|
346
|
|
|
return $this; |
347
|
|
|
} |
348
|
|
|
|
349
|
|
|
/** |
350
|
|
|
* @return null|string |
351
|
|
|
*/ |
352
|
|
|
public function getReference(): ?string |
353
|
|
|
{ |
354
|
|
|
return $this->reference; |
355
|
|
|
} |
356
|
|
|
|
357
|
|
|
/** |
358
|
|
|
* @param null|string $reference |
359
|
|
|
* |
360
|
|
|
* @return Header |
361
|
|
|
*/ |
362
|
|
|
public function setReference(?string $reference): Header |
363
|
|
|
{ |
364
|
|
|
$this->reference = $reference; |
365
|
|
|
|
366
|
|
|
return $this; |
367
|
|
|
} |
368
|
|
|
|
369
|
|
|
/** |
370
|
|
|
* @return null|string |
371
|
|
|
*/ |
372
|
|
|
public function getDeliveryNoteNo(): ?string |
373
|
|
|
{ |
374
|
|
|
return $this->delivery_note_no; |
375
|
|
|
} |
376
|
|
|
|
377
|
|
|
/** |
378
|
|
|
* @param null|string $delivery_note_no |
379
|
|
|
* |
380
|
|
|
* @return Header |
381
|
|
|
*/ |
382
|
|
|
public function setDeliveryNoteNo(?string $delivery_note_no): Header |
383
|
|
|
{ |
384
|
|
|
$this->delivery_note_no = $delivery_note_no; |
385
|
|
|
|
386
|
|
|
return $this; |
387
|
|
|
} |
388
|
|
|
|
389
|
|
|
/** |
390
|
|
|
* @return null|string |
391
|
|
|
*/ |
392
|
|
|
public function getCardNo(): ?string |
393
|
|
|
{ |
394
|
|
|
return $this->card_no; |
395
|
|
|
} |
396
|
|
|
|
397
|
|
|
/** |
398
|
|
|
* @param null|string $card_no |
399
|
|
|
* |
400
|
|
|
* @return Header |
401
|
|
|
*/ |
402
|
|
|
public function setCardNo(?string $card_no): Header |
403
|
|
|
{ |
404
|
|
|
$this->card_no = $card_no; |
405
|
|
|
|
406
|
|
|
return $this; |
407
|
|
|
} |
408
|
|
|
} |
409
|
|
|
|