Completed
Push — master ( f4e7d7...63b99e )
by Giancarlos
06:02
created

PerceptionDetail::setFechaEmision()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 5
Code Lines 3

Duplication

Lines 5
Ratio 100 %

Code Coverage

Tests 3
CRAP Score 1

Importance

Changes 1
Bugs 0 Features 0
Metric Value
c 1
b 0
f 0
dl 5
loc 5
ccs 3
cts 3
cp 1
rs 9.4285
cc 1
eloc 3
nc 1
nop 1
crap 1
1
<?php
2
/**
3
 * Created by PhpStorm.
4
 * User: Administrador
5
 * Date: 08/08/2017
6
 * Time: 11:28 AM
7
 */
8
9
namespace Greenter\Model\Perception;
10
11
use Greenter\Model\Retention\Exchange;
12
use Greenter\Model\Retention\Payment;
13
use Greenter\Xml\Validator\PerceptionDetailValidator;
14
use Symfony\Component\Validator\Constraints as Assert;
15
16
/**
17
 * Class PerceptionDetail
18
 * @package Greenter\Model\Perception
19
 */
20 View Code Duplication
class PerceptionDetail
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...
21
{
22
    use PerceptionDetailValidator;
23
24
    /**
25
     * Tipo de documento Relacionado.
26
     *
27
     * @Assert\NotBlank()
28
     * @Assert\Length(max="2")
29
     * @var string
30
     */
31
    private $tipoDoc;
32
33
    /**
34
     * Numero del documento relacionado (Serie-Correlativo).
35
     *
36
     * @Assert\NotBlank()
37
     * @Assert\Length(max="13")
38
     * @var string
39
     */
40
    private $numDoc;
41
42
    /**
43
     * Fecha de Emision del documento relacionado.
44
     *
45
     * @Assert\NotBlank()
46
     * @Assert\Date()
47
     * @var \DateTime
48
     */
49
    private $fechaEmision;
50
51
    /**
52
     * Importe total documento Relacionado.
53
     *
54
     * @Assert\NotBlank()
55
     * @var float
56
     */
57
    private $impTotal;
58
59
    /**
60
     * Moneda del docoumento relacionado.
61
     *
62
     * @Assert\NotBlank()
63
     * @Assert\Length(min="3", max="3")
64
     * @var string
65
     */
66
    private $moneda;
67
68
    /**
69
     * Datos del Cobro.
70
     *
71
     * @Assert\NotBlank()
72
     * @Assert\Valid()
73
     * @var Payment[]
74
     */
75
    private $cobros;
76
77
    /**
78
     * Fecha de Retención.
79
     *
80
     * @Assert\NotBlank()
81
     * @Assert\Date()
82
     * @var \DateTime
83
     */
84
    private $fechaPercepcion;
85
86
    /**
87
     * Importe Percibido.
88
     *
89
     * @Assert\NotBlank()
90
     * @var float
91
     */
92
    private $impPercibido;
93
94
    /**
95
     * Importe total a cobrar (neto).
96
     *
97
     * @Assert\NotBlank()
98
     * @var float
99
     */
100
    private $impCobrar;
101
102
    /**
103
     * @Assert\Valid()
104
     * @var Exchange
105
     */
106
    private $tipoCambio;
107
108
    /**
109
     * @return string
110
     */
111 4
    public function getTipoDoc()
112
    {
113 4
        return $this->tipoDoc;
114
    }
115
116
    /**
117
     * @param string $tipoDoc
118
     * @return PerceptionDetail
119
     */
120 6
    public function setTipoDoc($tipoDoc)
121
    {
122 6
        $this->tipoDoc = $tipoDoc;
123 6
        return $this;
124
    }
125
126
    /**
127
     * @return string
128
     */
129 4
    public function getNumDoc()
130
    {
131 4
        return $this->numDoc;
132
    }
133
134
    /**
135
     * @param string $numDoc
136
     * @return PerceptionDetail
137
     */
138 6
    public function setNumDoc($numDoc)
139
    {
140 6
        $this->numDoc = $numDoc;
141 6
        return $this;
142
    }
143
144
    /**
145
     * @return \DateTime
146
     */
147 4
    public function getFechaEmision()
148
    {
149 4
        return $this->fechaEmision;
150
    }
151
152
    /**
153
     * @param \DateTime $fechaEmision
154
     * @return PerceptionDetail
155
     */
156 6
    public function setFechaEmision($fechaEmision)
157
    {
158 6
        $this->fechaEmision = $fechaEmision;
159 6
        return $this;
160
    }
161
162
    /**
163
     * @return float
164
     */
165 4
    public function getImpTotal()
166
    {
167 4
        return $this->impTotal;
168
    }
169
170
    /**
171
     * @param float $impTotal
172
     * @return PerceptionDetail
173
     */
174 6
    public function setImpTotal($impTotal)
175
    {
176 6
        $this->impTotal = $impTotal;
177 6
        return $this;
178
    }
179
180
    /**
181
     * @return string
182
     */
183 4
    public function getMoneda()
184
    {
185 4
        return $this->moneda;
186
    }
187
188
    /**
189
     * @param string $moneda
190
     * @return PerceptionDetail
191
     */
192 6
    public function setMoneda($moneda)
193
    {
194 6
        $this->moneda = $moneda;
195 6
        return $this;
196
    }
197
198
    /**
199
     * @return Payment[]
200
     */
201 4
    public function getCobros()
202
    {
203 4
        return $this->cobros;
204
    }
205
206
    /**
207
     * @param Payment[] $cobros
208
     * @return PerceptionDetail
209
     */
210 6
    public function setCobros($cobros)
211
    {
212 6
        $this->cobros = $cobros;
213 6
        return $this;
214
    }
215
216
    /**
217
     * @return \DateTime
218
     */
219 4
    public function getFechaPercepcion()
220
    {
221 4
        return $this->fechaPercepcion;
222
    }
223
224
    /**
225
     * @param \DateTime $fechaPercepcion
226
     * @return PerceptionDetail
227
     */
228 6
    public function setFechaPercepcion($fechaPercepcion)
229
    {
230 6
        $this->fechaPercepcion = $fechaPercepcion;
231 6
        return $this;
232
    }
233
234
    /**
235
     * @return float
236
     */
237 4
    public function getImpPercibido()
238
    {
239 4
        return $this->impPercibido;
240
    }
241
242
    /**
243
     * @param float $impPercibido
244
     * @return PerceptionDetail
245
     */
246 6
    public function setImpPercibido($impPercibido)
247
    {
248 6
        $this->impPercibido = $impPercibido;
249 6
        return $this;
250
    }
251
252
    /**
253
     * @return float
254
     */
255 4
    public function getImpCobrar()
256
    {
257 4
        return $this->impCobrar;
258
    }
259
260
    /**
261
     * @param float $impCobrar
262
     * @return PerceptionDetail
263
     */
264 6
    public function setImpCobrar($impCobrar)
265
    {
266 6
        $this->impCobrar = $impCobrar;
267 6
        return $this;
268
    }
269
270
    /**
271
     * @return Exchange
272
     */
273 4
    public function getTipoCambio()
274
    {
275 4
        return $this->tipoCambio;
276
    }
277
278
    /**
279
     * @param Exchange $tipoCambio
280
     * @return PerceptionDetail
281
     */
282 6
    public function setTipoCambio($tipoCambio)
283
    {
284 6
        $this->tipoCambio = $tipoCambio;
285 6
        return $this;
286
    }
287
}