|
1
|
|
|
<?php |
|
2
|
|
|
|
|
3
|
|
|
namespace Umbrella\Ya\RetornoBoleto\Cnab\Cnab240; |
|
4
|
|
|
|
|
5
|
|
|
use DateTime; |
|
6
|
|
|
use Umbrella\Ya\RetornoBoleto\Cnab\CnabDetailInterface; |
|
7
|
|
|
|
|
8
|
|
|
class Detail extends AbstractCnab240 implements CnabDetailInterface |
|
9
|
|
|
{ |
|
10
|
|
|
protected $numRegistroLote; |
|
11
|
|
|
protected $segmento; |
|
12
|
|
|
protected $tipoMovimento; |
|
13
|
|
|
protected $codMovimento; |
|
14
|
|
|
protected $codBarras; |
|
15
|
|
|
protected $carteira; |
|
16
|
|
|
protected $numeroDocumento; |
|
17
|
|
|
protected $numeroContrato; |
|
18
|
|
|
protected $valorTarifa; |
|
19
|
|
|
|
|
20
|
|
|
/** |
|
21
|
|
|
* |
|
22
|
|
|
* @var DateTime |
|
23
|
|
|
*/ |
|
24
|
|
|
protected $dataVencimento; |
|
25
|
|
|
|
|
26
|
|
|
/** |
|
27
|
|
|
* |
|
28
|
|
|
* @var DateTime |
|
29
|
|
|
*/ |
|
30
|
|
|
protected $dataPagamento; |
|
31
|
|
|
protected $valorTitulo; |
|
32
|
|
|
protected $valorPagamento; |
|
33
|
|
|
protected $quantidadeMoeda; |
|
34
|
|
|
protected $referenciaSacado; |
|
35
|
|
|
protected $nossoNumero; |
|
36
|
|
|
protected $codMoeda; |
|
37
|
|
|
|
|
38
|
|
|
/** |
|
39
|
|
|
* @var float |
|
40
|
|
|
*/ |
|
41
|
|
|
protected $outrasDespesas; |
|
42
|
|
|
|
|
43
|
|
|
/** |
|
44
|
|
|
* @var float |
|
45
|
|
|
*/ |
|
46
|
|
|
protected $outrosCreditos; |
|
47
|
|
|
|
|
48
|
|
|
/** |
|
49
|
|
|
* @var DateTime |
|
50
|
|
|
*/ |
|
51
|
|
|
protected $dataOcorrencia; |
|
52
|
|
|
|
|
53
|
|
|
/** |
|
54
|
|
|
* @var DateTime |
|
55
|
|
|
*/ |
|
56
|
|
|
protected $dataCredito; |
|
57
|
|
|
|
|
58
|
|
|
/** |
|
59
|
|
|
* @var DadosTitulo |
|
60
|
|
|
*/ |
|
61
|
|
|
protected $dadosTitulo; |
|
62
|
|
|
protected $numeroSequencial; |
|
63
|
|
|
protected $numeroAutenticacao; |
|
64
|
|
|
protected $valorRecebido; |
|
65
|
|
|
|
|
66
|
|
|
/** |
|
67
|
|
|
* @return mixed |
|
68
|
|
|
*/ |
|
69
|
|
|
public function getCarteira() |
|
70
|
|
|
{ |
|
71
|
|
|
return $this->carteira; |
|
72
|
|
|
} |
|
73
|
|
|
|
|
74
|
|
|
/** |
|
75
|
|
|
* @param mixed $carteira |
|
76
|
|
|
* @return $this |
|
77
|
|
|
*/ |
|
78
|
|
|
public function setCarteira($carteira) |
|
79
|
|
|
{ |
|
80
|
|
|
$this->carteira = $carteira; |
|
81
|
|
|
return $this; |
|
82
|
|
|
} |
|
83
|
|
|
|
|
84
|
|
|
/** |
|
85
|
|
|
* @return mixed |
|
86
|
|
|
*/ |
|
87
|
|
|
public function getCodBarras() |
|
88
|
|
|
{ |
|
89
|
|
|
return $this->codBarras; |
|
90
|
|
|
} |
|
91
|
|
|
|
|
92
|
|
|
/** |
|
93
|
|
|
* @param mixed $codBarras |
|
94
|
|
|
* @return $this |
|
95
|
|
|
*/ |
|
96
|
|
|
public function setCodBarras($codBarras) |
|
97
|
|
|
{ |
|
98
|
|
|
$this->codBarras = $codBarras; |
|
99
|
|
|
return $this; |
|
100
|
|
|
} |
|
101
|
|
|
|
|
102
|
|
|
/** |
|
103
|
|
|
* @return mixed |
|
104
|
|
|
*/ |
|
105
|
|
|
public function getCodMoeda() |
|
106
|
|
|
{ |
|
107
|
|
|
return $this->codMoeda; |
|
108
|
|
|
} |
|
109
|
|
|
|
|
110
|
|
|
/** |
|
111
|
|
|
* @param mixed $codMoeda |
|
112
|
|
|
* @return $this |
|
113
|
|
|
*/ |
|
114
|
|
|
public function setCodMoeda($codMoeda) |
|
115
|
|
|
{ |
|
116
|
|
|
$this->codMoeda = $codMoeda; |
|
117
|
|
|
return $this; |
|
118
|
|
|
} |
|
119
|
|
|
|
|
120
|
|
|
/** |
|
121
|
|
|
* @return mixed |
|
122
|
|
|
*/ |
|
123
|
|
|
public function getCodMovimento() |
|
124
|
|
|
{ |
|
125
|
|
|
return $this->codMovimento; |
|
126
|
|
|
} |
|
127
|
|
|
|
|
128
|
|
|
/** |
|
129
|
|
|
* @param mixed $codMovimento |
|
130
|
|
|
* @return $this |
|
131
|
|
|
*/ |
|
132
|
|
|
public function setCodMovimento($codMovimento) |
|
133
|
|
|
{ |
|
134
|
|
|
$this->codMovimento = $codMovimento; |
|
135
|
|
|
return $this; |
|
136
|
|
|
} |
|
137
|
|
|
|
|
138
|
|
|
/** |
|
139
|
|
|
* @return DadosTitulo |
|
140
|
|
|
*/ |
|
141
|
|
|
public function getDadosTitulo() |
|
142
|
|
|
{ |
|
143
|
|
|
return $this->dadosTitulo; |
|
144
|
|
|
} |
|
145
|
|
|
|
|
146
|
|
|
/** |
|
147
|
|
|
* @param DadosTitulo $dadosTitulo |
|
148
|
|
|
* @return $this |
|
149
|
|
|
*/ |
|
150
|
|
|
public function setDadosTitulo($dadosTitulo) |
|
151
|
|
|
{ |
|
152
|
|
|
$this->dadosTitulo = $dadosTitulo; |
|
153
|
|
|
return $this; |
|
154
|
|
|
} |
|
155
|
|
|
|
|
156
|
|
|
/** |
|
157
|
|
|
* @return DateTime |
|
158
|
|
|
*/ |
|
159
|
|
|
public function getDataPagamento() |
|
160
|
|
|
{ |
|
161
|
|
|
return $this->dataPagamento; |
|
162
|
|
|
} |
|
163
|
|
|
|
|
164
|
|
|
/** |
|
165
|
|
|
* @param DateTime $dataPagamento |
|
166
|
|
|
* @return $this |
|
167
|
|
|
*/ |
|
168
|
|
|
public function setDataPagamento($dataPagamento) |
|
169
|
|
|
{ |
|
170
|
|
|
$this->dataPagamento = $dataPagamento; |
|
171
|
|
|
return $this; |
|
172
|
|
|
} |
|
173
|
|
|
|
|
174
|
|
|
/** |
|
175
|
|
|
* @return DateTime |
|
176
|
|
|
*/ |
|
177
|
|
|
public function getDataVencimento() |
|
178
|
|
|
{ |
|
179
|
|
|
return $this->dataVencimento; |
|
180
|
|
|
} |
|
181
|
|
|
|
|
182
|
|
|
/** |
|
183
|
|
|
* @param DateTime $dataVencimento |
|
184
|
|
|
* @return $this |
|
185
|
|
|
*/ |
|
186
|
|
|
public function setDataVencimento($dataVencimento) |
|
187
|
|
|
{ |
|
188
|
|
|
$this->dataVencimento = $dataVencimento; |
|
189
|
|
|
return $this; |
|
190
|
|
|
} |
|
191
|
|
|
|
|
192
|
|
|
/** |
|
193
|
|
|
* @return mixed |
|
194
|
|
|
*/ |
|
195
|
|
|
public function getNossoNumero() |
|
196
|
|
|
{ |
|
197
|
|
|
return $this->nossoNumero; |
|
198
|
|
|
} |
|
199
|
|
|
|
|
200
|
|
|
/** |
|
201
|
|
|
* @param mixed $nossoNumero |
|
202
|
|
|
* @return $this |
|
203
|
|
|
*/ |
|
204
|
|
|
public function setNossoNumero($nossoNumero) |
|
205
|
|
|
{ |
|
206
|
|
|
$this->nossoNumero = $nossoNumero; |
|
207
|
|
|
return $this; |
|
208
|
|
|
} |
|
209
|
|
|
|
|
210
|
|
|
/** |
|
211
|
|
|
* @return mixed |
|
212
|
|
|
*/ |
|
213
|
|
|
public function getNumRegistroLote() |
|
214
|
|
|
{ |
|
215
|
|
|
return $this->numRegistroLote; |
|
216
|
|
|
} |
|
217
|
|
|
|
|
218
|
|
|
/** |
|
219
|
|
|
* @param mixed $numRegistroLote |
|
220
|
|
|
* @return $this |
|
221
|
|
|
*/ |
|
222
|
|
|
public function setNumRegistroLote($numRegistroLote) |
|
223
|
|
|
{ |
|
224
|
|
|
$this->numRegistroLote = $numRegistroLote; |
|
225
|
|
|
return $this; |
|
226
|
|
|
} |
|
227
|
|
|
|
|
228
|
|
|
/** |
|
229
|
|
|
* @return mixed |
|
230
|
|
|
*/ |
|
231
|
|
|
public function getNumeroContrato() |
|
232
|
|
|
{ |
|
233
|
|
|
return $this->numeroContrato; |
|
234
|
|
|
} |
|
235
|
|
|
|
|
236
|
|
|
/** |
|
237
|
|
|
* @param mixed $numeroContrato |
|
238
|
|
|
* @return $this |
|
239
|
|
|
*/ |
|
240
|
|
|
public function setNumeroContrato($numeroContrato) |
|
241
|
|
|
{ |
|
242
|
|
|
$this->numeroContrato = $numeroContrato; |
|
243
|
|
|
return $this; |
|
244
|
|
|
} |
|
245
|
|
|
|
|
246
|
|
|
/** |
|
247
|
|
|
* @return mixed |
|
248
|
|
|
*/ |
|
249
|
|
|
public function getNumeroDocumento() |
|
250
|
|
|
{ |
|
251
|
|
|
return $this->numeroDocumento; |
|
252
|
|
|
} |
|
253
|
|
|
|
|
254
|
|
|
/** |
|
255
|
|
|
* @param mixed $numeroDocumento |
|
256
|
|
|
* @return $this |
|
257
|
|
|
*/ |
|
258
|
|
|
public function setNumeroDocumento($numeroDocumento) |
|
259
|
|
|
{ |
|
260
|
|
|
$this->numeroDocumento = $numeroDocumento; |
|
261
|
|
|
return $this; |
|
262
|
|
|
} |
|
263
|
|
|
|
|
264
|
|
|
/** |
|
265
|
|
|
* @return mixed |
|
266
|
|
|
*/ |
|
267
|
|
|
public function getQuantidadeMoeda() |
|
268
|
|
|
{ |
|
269
|
|
|
return $this->quantidadeMoeda; |
|
270
|
|
|
} |
|
271
|
|
|
|
|
272
|
|
|
/** |
|
273
|
|
|
* @param mixed $quantidadeMoeda |
|
274
|
|
|
* @return $this |
|
275
|
|
|
*/ |
|
276
|
|
|
public function setQuantidadeMoeda($quantidadeMoeda) |
|
277
|
|
|
{ |
|
278
|
|
|
$this->quantidadeMoeda = $quantidadeMoeda; |
|
279
|
|
|
return $this; |
|
280
|
|
|
} |
|
281
|
|
|
|
|
282
|
|
|
/** |
|
283
|
|
|
* @return mixed |
|
284
|
|
|
*/ |
|
285
|
|
|
public function getReferenciaSacado() |
|
286
|
|
|
{ |
|
287
|
|
|
return $this->referenciaSacado; |
|
288
|
|
|
} |
|
289
|
|
|
|
|
290
|
|
|
/** |
|
291
|
|
|
* @param mixed $referenciaSacado |
|
292
|
|
|
* @return $this |
|
293
|
|
|
*/ |
|
294
|
|
|
public function setReferenciaSacado($referenciaSacado) |
|
295
|
|
|
{ |
|
296
|
|
|
$this->referenciaSacado = $referenciaSacado; |
|
297
|
|
|
return $this; |
|
298
|
|
|
} |
|
299
|
|
|
|
|
300
|
|
|
/** |
|
301
|
|
|
* @return mixed |
|
302
|
|
|
*/ |
|
303
|
|
|
public function getSegmento() |
|
304
|
|
|
{ |
|
305
|
|
|
return $this->segmento; |
|
306
|
|
|
} |
|
307
|
|
|
|
|
308
|
|
|
/** |
|
309
|
|
|
* @param mixed $segmento |
|
310
|
|
|
* @return $this |
|
311
|
|
|
*/ |
|
312
|
|
|
public function setSegmento($segmento) |
|
313
|
|
|
{ |
|
314
|
|
|
$this->segmento = $segmento; |
|
315
|
|
|
return $this; |
|
316
|
|
|
} |
|
317
|
|
|
|
|
318
|
|
|
/** |
|
319
|
|
|
* @return mixed |
|
320
|
|
|
*/ |
|
321
|
|
|
public function getTipoMovimento() |
|
322
|
|
|
{ |
|
323
|
|
|
return $this->tipoMovimento; |
|
324
|
|
|
} |
|
325
|
|
|
|
|
326
|
|
|
/** |
|
327
|
|
|
* @param mixed $tipoMovimento |
|
328
|
|
|
* @return $this |
|
329
|
|
|
*/ |
|
330
|
|
|
public function setTipoMovimento($tipoMovimento) |
|
331
|
|
|
{ |
|
332
|
|
|
$this->tipoMovimento = $tipoMovimento; |
|
333
|
|
|
return $this; |
|
334
|
|
|
} |
|
335
|
|
|
|
|
336
|
|
|
/** |
|
337
|
|
|
* @return mixed |
|
338
|
|
|
*/ |
|
339
|
|
|
public function getValorPagamento() |
|
340
|
|
|
{ |
|
341
|
|
|
return $this->valorPagamento; |
|
342
|
|
|
} |
|
343
|
|
|
|
|
344
|
|
|
/** |
|
345
|
|
|
* @param mixed $valorPagamento |
|
346
|
|
|
* @return $this |
|
347
|
|
|
*/ |
|
348
|
|
|
public function setValorPagamento($valorPagamento) |
|
349
|
|
|
{ |
|
350
|
|
|
$this->valorPagamento = $valorPagamento; |
|
351
|
|
|
return $this; |
|
352
|
|
|
} |
|
353
|
|
|
|
|
354
|
|
|
/** |
|
355
|
|
|
* @return mixed |
|
356
|
|
|
*/ |
|
357
|
|
|
public function getValorTarifa() |
|
358
|
|
|
{ |
|
359
|
|
|
return $this->valorTarifa; |
|
360
|
|
|
} |
|
361
|
|
|
|
|
362
|
|
|
/** |
|
363
|
|
|
* @param mixed $valorTarifa |
|
364
|
|
|
* @return $this |
|
365
|
|
|
*/ |
|
366
|
|
|
public function setValorTarifa($valorTarifa) |
|
367
|
|
|
{ |
|
368
|
|
|
$this->valorTarifa = $valorTarifa; |
|
369
|
|
|
return $this; |
|
370
|
|
|
} |
|
371
|
|
|
|
|
372
|
|
|
/** |
|
373
|
|
|
* @return mixed |
|
374
|
|
|
*/ |
|
375
|
|
|
public function getValorTitulo() |
|
376
|
|
|
{ |
|
377
|
|
|
return $this->valorTitulo; |
|
378
|
|
|
} |
|
379
|
|
|
|
|
380
|
|
|
/** |
|
381
|
|
|
* @param mixed $valorTitulo |
|
382
|
|
|
* @return $this |
|
383
|
|
|
*/ |
|
384
|
|
|
public function setValorTitulo($valorTitulo) |
|
385
|
|
|
{ |
|
386
|
|
|
$this->valorTitulo = $valorTitulo; |
|
387
|
|
|
return $this; |
|
388
|
|
|
} |
|
389
|
|
|
|
|
390
|
|
|
/** |
|
391
|
|
|
* @return DateTime |
|
392
|
|
|
*/ |
|
393
|
|
|
public function getDataCredito() |
|
394
|
|
|
{ |
|
395
|
|
|
return $this->dataCredito; |
|
396
|
|
|
} |
|
397
|
|
|
|
|
398
|
|
|
/** |
|
399
|
|
|
* @param DateTime $dataCredito |
|
400
|
|
|
* @return $this |
|
401
|
|
|
*/ |
|
402
|
|
|
public function setDataCredito(DateTime $dataCredito) |
|
403
|
|
|
{ |
|
404
|
|
|
$this->dataCredito = $dataCredito; |
|
405
|
|
|
return $this; |
|
406
|
|
|
} |
|
407
|
|
|
|
|
408
|
|
|
/** |
|
409
|
|
|
* @return DateTime |
|
410
|
|
|
*/ |
|
411
|
|
|
public function getDataOcorrencia() |
|
412
|
|
|
{ |
|
413
|
|
|
return $this->dataOcorrencia; |
|
414
|
|
|
} |
|
415
|
|
|
|
|
416
|
|
|
/** |
|
417
|
|
|
* @param DateTime $dataOcorrencia |
|
418
|
|
|
* @return $this |
|
419
|
|
|
*/ |
|
420
|
|
|
public function setDataOcorrencia(DateTime $dataOcorrencia) |
|
421
|
|
|
{ |
|
422
|
|
|
$this->dataOcorrencia = $dataOcorrencia; |
|
423
|
|
|
return $this; |
|
424
|
|
|
} |
|
425
|
|
|
|
|
426
|
|
|
/** |
|
427
|
|
|
* @return float |
|
428
|
|
|
*/ |
|
429
|
|
|
public function getOutrasDespesas() |
|
430
|
|
|
{ |
|
431
|
|
|
return $this->outrasDespesas; |
|
432
|
|
|
} |
|
433
|
|
|
|
|
434
|
|
|
/** |
|
435
|
|
|
* @param float $outrasDespesas |
|
436
|
|
|
* @return $this |
|
437
|
|
|
*/ |
|
438
|
|
|
public function setOutrasDespesas($outrasDespesas) |
|
439
|
|
|
{ |
|
440
|
|
|
$this->outrasDespesas = $outrasDespesas; |
|
441
|
|
|
return $this; |
|
442
|
|
|
} |
|
443
|
|
|
|
|
444
|
|
|
/** |
|
445
|
|
|
* @return float |
|
446
|
|
|
*/ |
|
447
|
|
|
public function getOutrosCreditos() |
|
448
|
|
|
{ |
|
449
|
|
|
return $this->outrosCreditos; |
|
450
|
|
|
} |
|
451
|
|
|
|
|
452
|
|
|
/** |
|
453
|
|
|
* @param float $outrosCreditos |
|
454
|
|
|
* @return $this |
|
455
|
|
|
*/ |
|
456
|
|
|
public function setOutrosCreditos($outrosCreditos) |
|
457
|
|
|
{ |
|
458
|
|
|
$this->outrosCreditos = $outrosCreditos; |
|
459
|
|
|
return $this; |
|
460
|
|
|
} |
|
461
|
|
|
|
|
462
|
|
|
/** |
|
463
|
|
|
* |
|
464
|
|
|
* @return mixed |
|
465
|
|
|
*/ |
|
466
|
|
|
public function getNumeroSequencial() |
|
467
|
|
|
{ |
|
468
|
|
|
return $this->numeroSequencial; |
|
469
|
|
|
} |
|
470
|
|
|
|
|
471
|
|
|
/** |
|
472
|
|
|
* |
|
473
|
|
|
* @param mixed $numeroSequencial |
|
474
|
|
|
* @return $this |
|
475
|
|
|
*/ |
|
476
|
|
|
public function setNumeroSequencial($numeroSequencial) |
|
477
|
|
|
{ |
|
478
|
|
|
$this->numeroSequencial = $numeroSequencial; |
|
479
|
|
|
return $this; |
|
480
|
|
|
} |
|
481
|
|
|
|
|
482
|
|
|
/** |
|
483
|
|
|
* |
|
484
|
|
|
* @return mixed |
|
485
|
|
|
*/ |
|
486
|
|
|
public function getNumeroAutenticacao() |
|
487
|
|
|
{ |
|
488
|
|
|
return $this->numeroAutenticacao; |
|
489
|
|
|
} |
|
490
|
|
|
|
|
491
|
|
|
/** |
|
492
|
|
|
* |
|
493
|
|
|
* @param mixed $numeroAutenticacao |
|
494
|
|
|
* @return $this |
|
495
|
|
|
*/ |
|
496
|
|
|
public function setNumeroAutenticacao($numeroAutenticacao) |
|
497
|
|
|
{ |
|
498
|
|
|
$this->numeroAutenticacao = $numeroAutenticacao; |
|
499
|
|
|
return $this; |
|
500
|
|
|
} |
|
501
|
|
|
|
|
502
|
|
|
/** |
|
503
|
|
|
* |
|
504
|
|
|
* @return mixed |
|
505
|
|
|
*/ |
|
506
|
|
|
public function getValorRecebido() |
|
507
|
|
|
{ |
|
508
|
|
|
return $this->valorRecebido; |
|
509
|
|
|
} |
|
510
|
|
|
|
|
511
|
|
|
/** |
|
512
|
|
|
* |
|
513
|
|
|
* @param mixed $valorRecebido |
|
514
|
|
|
* @return $this |
|
515
|
|
|
*/ |
|
516
|
|
|
public function setValorRecebido($valorRecebido) |
|
517
|
|
|
{ |
|
518
|
|
|
$this->valorRecebido = $valorRecebido; |
|
519
|
|
|
return $this; |
|
520
|
|
|
} |
|
521
|
|
|
|
|
522
|
|
|
} |
|
523
|
|
|
|