Completed
Push — master ( 6ba45c...e1d569 )
by Giancarlos
04:03
created

Retention::setFechaEmision()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 5
Code Lines 3

Duplication

Lines 5
Ratio 100 %

Code Coverage

Tests 0
CRAP Score 2

Importance

Changes 1
Bugs 0 Features 0
Metric Value
c 1
b 0
f 0
dl 5
loc 5
ccs 0
cts 5
cp 0
rs 9.4285
cc 1
eloc 3
nc 1
nop 1
crap 2
1
<?php
2
/**
3
 * Created by PhpStorm.
4
 * User: Administrador
5
 * Date: 08/08/2017
6
 * Time: 10:37 AM
7
 */
8
9
namespace Greenter\Model\Retention;
10
11
use Greenter\Model\Client\Client;
12
use Greenter\Xml\Validator\RetentionValidator;
13
use Symfony\Component\Validator\Constraints as Assert;
14
15
/**
16
 * Class Retention
17
 * @package Greenter\Model\Retention
18
 */
19 View Code Duplication
class Retention
0 ignored issues
show
Duplication introduced by
This class seems to be duplicated in your project.

Duplicated code is one of the most pungent code smells. If you need to duplicate the same code in three or more different places, we strongly encourage you to look into extracting the code into a single class or operation.

You can also find more detailed suggestions in the “Code” section of your repository.

Loading history...
20
{
21
    use RetentionValidator;
22
23
    /**
24
     * @Assert\NotBlank()
25
     * @Assert\Length(max="4")
26
     * @var string
27
     */
28
    private $serie;
29
30
    /**
31
     * @Assert\NotBlank()
32
     * @Assert\Length(max="8")
33
     * @var string
34
     */
35
    private $correlativo;
36
37
    /**
38
     * @Assert\Date()
39
     * @var \DateTime
40
     */
41
    private $fechaEmision;
42
43
    /**
44
     * @Assert\NotBlank()
45
     * @Assert\Valid()
46
     * @var Client
47
     */
48
    private $proveedor;
49
50
    /**
51
     * @Assert\NotBlank()
52
     * @Assert\Length(min="2", max="2")
53
     * @var string
54
     */
55
    private $regimen;
56
57
    /**
58
     * @Assert\NotBlank()
59
     * @var float
60
     */
61
    private $tasa;
62
63
    /**
64
     * Importe total Retenido
65
     *
66
     * @Assert\NotBlank()
67
     * @var float
68
     */
69
    private $impRetenido;
70
71
    /**
72
     * Importe total Pagado
73
     *
74
     * @Assert\NotBlank()
75
     * @var float
76
     */
77
    private $impPagado;
78
79
    /**
80
     * Moneda del Importe total Retenido.
81
     *
82
     * @Assert\NotBlank()
83
     * @Assert\Length(min="3", max="3")
84
     * @var string
85
     */
86
    private $moneda;
87
88
    /**
89
     * @Assert\Length(max="250")
90
     * @var string
91
     */
92
    private $observacion;
93
94
    /**
95
     * Dato del Comprobante relacionado.
96
     *
97
     * @Assert\NotBlank()
98
     * @Assert\Valid()
99
     * @var RetentionDetail[]
100
     */
101
    private $details;
102
103
    /**
104
     * @return string
105
     */
106
    public function getSerie()
107
    {
108
        return $this->serie;
109
    }
110
111
    /**
112
     * @param string $serie
113
     * @return Retention
114
     */
115
    public function setSerie($serie)
116
    {
117
        $this->serie = $serie;
118
        return $this;
119
    }
120
121
    /**
122
     * @return string
123
     */
124
    public function getCorrelativo()
125
    {
126
        return $this->correlativo;
127
    }
128
129
    /**
130
     * @param string $correlativo
131
     * @return Retention
132
     */
133
    public function setCorrelativo($correlativo)
134
    {
135
        $this->correlativo = $correlativo;
136
        return $this;
137
    }
138
139
    /**
140
     * @return \DateTime
141
     */
142
    public function getFechaEmision()
143
    {
144
        return $this->fechaEmision;
145
    }
146
147
    /**
148
     * @param \DateTime $fechaEmision
149
     * @return Retention
150
     */
151
    public function setFechaEmision($fechaEmision)
152
    {
153
        $this->fechaEmision = $fechaEmision;
154
        return $this;
155
    }
156
157
    /**
158
     * @return Client
159
     */
160
    public function getProveedor()
161
    {
162
        return $this->proveedor;
163
    }
164
165
    /**
166
     * @param Client $proveedor
167
     * @return Retention
168
     */
169
    public function setProveedor($proveedor)
170
    {
171
        $this->proveedor = $proveedor;
172
        return $this;
173
    }
174
175
    /**
176
     * @return string
177
     */
178
    public function getRegimen()
179
    {
180
        return $this->regimen;
181
    }
182
183
    /**
184
     * @param string $regimen
185
     * @return Retention
186
     */
187
    public function setRegimen($regimen)
188
    {
189
        $this->regimen = $regimen;
190
        return $this;
191
    }
192
193
    /**
194
     * @return float
195
     */
196
    public function getTasa()
197
    {
198
        return $this->tasa;
199
    }
200
201
    /**
202
     * @param float $tasa
203
     * @return Retention
204
     */
205
    public function setTasa($tasa)
206
    {
207
        $this->tasa = $tasa;
208
        return $this;
209
    }
210
211
    /**
212
     * @return float
213
     */
214
    public function getImpRetenido()
215
    {
216
        return $this->impRetenido;
217
    }
218
219
    /**
220
     * @param float $impRetenido
221
     * @return Retention
222
     */
223
    public function setImpRetenido($impRetenido)
224
    {
225
        $this->impRetenido = $impRetenido;
226
        return $this;
227
    }
228
229
    /**
230
     * @return float
231
     */
232
    public function getImpPagado()
233
    {
234
        return $this->impPagado;
235
    }
236
237
    /**
238
     * @param float $impPagado
239
     * @return Retention
240
     */
241
    public function setImpPagado($impPagado)
242
    {
243
        $this->impPagado = $impPagado;
244
        return $this;
245
    }
246
247
    /**
248
     * @return string
249
     */
250
    public function getMoneda()
251
    {
252
        return $this->moneda;
253
    }
254
255
    /**
256
     * @param string $moneda
257
     * @return Retention
258
     */
259
    public function setMoneda($moneda)
260
    {
261
        $this->moneda = $moneda;
262
        return $this;
263
    }
264
265
    /**
266
     * @return string
267
     */
268
    public function getObservacion()
269
    {
270
        return $this->observacion;
271
    }
272
273
    /**
274
     * @param string $observacion
275
     * @return Retention
276
     */
277
    public function setObservacion($observacion)
278
    {
279
        $this->observacion = $observacion;
280
        return $this;
281
    }
282
283
    /**
284
     * @return mixed
285
     */
286
    public function getDetails()
287
    {
288
        return $this->details;
289
    }
290
291
    /**
292
     * @param mixed $details
293
     * @return Retention
294
     */
295
    public function setDetails($details)
296
    {
297
        $this->details = $details;
0 ignored issues
show
Documentation Bug introduced by
It seems like $details of type * is incompatible with the declared type array<integer,object<Gre...ntion\RetentionDetail>> of property $details.

Our type inference engine has found an assignment to a property that is incompatible with the declared type of that property.

Either this assignment is in error or the assigned type should be added to the documentation/type hint for that property..

Loading history...
298
        return $this;
299
    }
300
}