Trailer::setCaucionada()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 5
Code Lines 3

Duplication

Lines 0
Ratio 0 %

Importance

Changes 2
Bugs 0 Features 0
Metric Value
c 2
b 0
f 0
dl 0
loc 5
rs 9.4285
cc 1
eloc 3
nc 1
nop 1
1
<?php
2
3
namespace Umbrella\Ya\RetornoBoleto\Cnab\Cnab400;
4
5
use Easy\Collections\ArrayList;
6
use Easy\Collections\VectorInterface;
7
use Umbrella\Ya\RetornoBoleto\Model\Banco;
8
use Umbrella\Ya\RetornoBoleto\Model\Cobranca;
9
10
class Trailer extends AbstractCnab400 implements TrailerInterface
11
{
12
    protected $retorno;
13
    protected $tipoRegistro;
14
    protected $sequencial;
15
16
    /**
17
     * @var Banco
18
     */
19
    protected $banco;
20
21
    /**
22
     * @var Cobranca
23
     */
24
    protected $simples;
25
26
    /**
27
     * @var Cobranca
28
     */
29
    protected $vinculada;
30
31
    /**
32
     * @var Cobranca
33
     */
34
    protected $caucionada;
35
36
    /**
37
     * @var Cobranca
38
     */
39
    protected $vendor;
40
41
    /**
42
     * @var Cobranca
43
     */
44
    protected $descontada;
45
46
    /**
47
     *
48
     * @var VectorInterface
49
     */
50
    protected $brancos;
51
52
    public function __construct()
53
    {
54
        $this->brancos = new ArrayList();
55
        parent::__construct();
56
    }
57
58
    public function getRetorno()
59
    {
60
        return $this->retorno;
61
    }
62
63
    public function getTipoRegistro()
64
    {
65
        return $this->tipoRegistro;
66
    }
67
68
    public function getSequencial()
69
    {
70
        return $this->sequencial;
71
    }
72
73
    public function getBanco()
74
    {
75
        return $this->banco;
76
    }
77
78
    public function getSimples()
79
    {
80
        return $this->simples;
81
    }
82
83
    public function getVinculada()
84
    {
85
        return $this->vinculada;
86
    }
87
88
    public function getCaucionada()
89
    {
90
        return $this->caucionada;
91
    }
92
93
    public function getVendor()
94
    {
95
        return $this->vendor;
96
    }
97
98
    public function getDescontada()
99
    {
100
        return $this->descontada;
101
    }
102
103
    public function setRetorno($retorno)
104
    {
105
        $this->retorno = $retorno;
106
        return $this;
107
    }
108
109
    public function setTipoRegistro($tipoRegistro)
110
    {
111
        $this->tipoRegistro = $tipoRegistro;
112
        return $this;
113
    }
114
115
    public function setSequencial($sequencial)
116
    {
117
        $this->sequencial = $sequencial;
118
        return $this;
119
    }
120
121
    public function setBanco(Banco $banco)
122
    {
123
        $this->banco = $banco;
124
        return $this;
125
    }
126
127
    public function setSimples(Cobranca $simples)
128
    {
129
        $this->simples = $simples;
130
        return $this;
131
    }
132
133
    public function setVinculada(Cobranca $vinculada)
134
    {
135
        $this->vinculada = $vinculada;
136
        return $this;
137
    }
138
139
    public function setCaucionada(Cobranca $caucionada)
140
    {
141
        $this->caucionada = $caucionada;
142
        return $this;
143
    }
144
145
    public function setVendor(Cobranca $vendor)
146
    {
147
        $this->vendor = $vendor;
148
        return $this;
149
    }
150
151
    public function setDescontada(Cobranca $descontada)
152
    {
153
        $this->descontada = $descontada;
154
        return $this;
155
    }
156
157
    public function getBrancos()
158
    {
159
        return $this->brancos;
160
    }
161
162
    public function setBrancos($brancos)
163
    {
164
        $this->brancos = $brancos;
165
        return $this;
166
    }
167
168
    /**
169
     * @param string $zeros
170
     */
171
    public function addBranco($zeros)
172
    {
173
        $this->brancos->add($zeros);
174
        return $this;
175
    }
176
177
    public function removeBranco($zeros)
178
    {
179
        $this->brancos->remove($zeros);
180
        return $this;
181
    }
182
}
183