Boleto::getDataDocumento()
last analyzed

Size

Total Lines 1

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
c 1
b 0
f 0
dl 0
loc 1
nc 1
1
<?php
2
namespace CbCaio\Boletos\Models\BoletoInfo\Base;
3
4
use Carbon\Carbon;
5
use CbCaio\Boletos\Models\BoletoInfo\Contracts\BoletoInfoInterface;
6
7
abstract class Boleto implements BoletoInfoInterface
8
{
9
    /**
10
     * All of the user's attributes.
11
     *
12
     * @var array
13
     */
14
    protected $attributes;
15
    protected $date_format = 'Y-m-d';
16
17
    public function __construct(array $attributes)
18
    {
19
        $this->attributes = $attributes;
20
    }
21
22
    /**
23
     * @return Carbon
24
     */
25
    public abstract function getDataVencimentoRecebida();
0 ignored issues
show
Coding Style introduced by
The abstract declaration must precede the visibility declaration
Loading history...
26
27
    /**
28
     * @return Carbon
29
     */
30
    public abstract function getDataDocumento();
0 ignored issues
show
Coding Style introduced by
The abstract declaration must precede the visibility declaration
Loading history...
31
32
    /**
33
     * @return Carbon
34
     */
35
    public abstract function getDataProcessamento();
0 ignored issues
show
Coding Style introduced by
The abstract declaration must precede the visibility declaration
Loading history...
36
37
    /**
38
     * @param bool|FALSE $formatado10digitos
39
     * @param bool|FALSE $inteiro
40
     * @return string|integer
41
     */
42
    public abstract function getValorFinal($formatado10digitos = FALSE, $inteiro = FALSE);
0 ignored issues
show
Coding Style introduced by
The abstract declaration must precede the visibility declaration
Loading history...
43
44
    /**
45
     * @return Carbon
46
     */
47
    public abstract function getDataVencimentoCalculada();
0 ignored issues
show
Coding Style introduced by
The abstract declaration must precede the visibility declaration
Loading history...
48
49
    /**
50
     * @param bool|FALSE $valor_inteiro
51
     * @return string|integer
52
     */
53
    public abstract function getValorTaxa($valor_inteiro = FALSE);
0 ignored issues
show
Coding Style introduced by
The abstract declaration must precede the visibility declaration
Loading history...
54
55
    /**
56
     * @param bool|FALSE $valor_inteiro
57
     * @return string|integer
58
     */
59
    public abstract function getValorMulta($valor_inteiro = FALSE);
0 ignored issues
show
Coding Style introduced by
The abstract declaration must precede the visibility declaration
Loading history...
60
61
    /**
62
     * @return null|string
63
     */
64
    public function getNossoNumeroRecebido()
65
    {
66
        return isset($this->attributes['nosso_numero']) ? $this->attributes['nosso_numero'] : NULL;
67
    }
68
69
    /**
70
     * @return null|string
71
     */
72
    public function getAceite()
73
    {
74
        return isset($this->attributes['aceite']) ? $this->attributes['aceite'] : NULL;
75
    }
76
77
    /**
78
     * @return null|string
79
     */
80
    public function getEspecieDoc()
81
    {
82
        return isset($this->attributes['especie_doc']) ? $this->attributes['especie_doc'] : NULL;
83
    }
84
85
    /**
86
     * @return null|string
87
     */
88
    public function getNomeSacado()
89
    {
90
        return isset($this->attributes['nome_sacado']) ? $this->attributes['nome_sacado'] : NULL;
91
    }
92
93
    /**
94
     * @return null|string
95
     */
96
    public function getCpfCnpjSacado()
97
    {
98
        return isset($this->attributes['cpf_cnpj_sacado']) ? $this->attributes['cpf_cnpj_sacado'] : NULL;
99
    }
100
101
    /**
102
     * @return null|string
103
     */
104
    public function getEspecieMoeda()
105
    {
106
        return isset($this->attributes['especie']) ? $this->attributes['especie'] : NULL;
107
    }
108
109
    /**
110
     * @return null|string
111
     */
112
    public function getNumeroDocumento()
113
    {
114
        return isset($this->attributes['numero_documento']) ? $this->attributes['numero_documento'] : NULL;
115
    }
116
117
    /**
118
     * @return null|integer
119
     */
120
    public function getDiasParaPagar()
121
    {
122
        return isset($this->attributes['dias_para_pagar']) ? $this->attributes['dias_para_pagar'] : NULL;
123
    }
124
125
    /**
126
     * @return null|string
127
     */
128
    public function getTaxaPercentual()
129
    {
130
        return isset($this->attributes['taxa']) ? $this->attributes['taxa'] : NULL;
131
    }
132
133
    /**
134
     * @return null|string
135
     */
136
    public function getMultaPercentual()
137
    {
138
        return isset($this->attributes['multa']) ? $this->attributes['multa'] : NULL;
139
    }
140
141
    /**
142
     * @return null|integer
143
     */
144
    public function getValorBase()
145
    {
146
        return isset($this->attributes['valor_base']) ? $this->attributes['valor_base'] : NULL;
147
    }
148
149
}