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

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