Completed
Pull Request — master (#5)
by Giancarlos
04:05
created

SummaryDetailV2::setTipoDoc()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 5
Code Lines 3

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 3
CRAP Score 1

Importance

Changes 0
Metric Value
dl 0
loc 5
ccs 3
cts 3
cp 1
rs 9.4285
c 0
b 0
f 0
cc 1
eloc 3
nc 1
nop 1
crap 1
1
<?php
2
/**
3
 * Created by PhpStorm.
4
 * User: Admi
5
 * nistrador
6
 * Date: 04/10/2017
7
 * Time: 12:10 PM
8
 */
9
10
namespace Greenter\Model\Summary;
11
12
use Greenter\Model\Sale\Document;
13
use Greenter\Xml\Validator\SummaryDetailV2Validator;
14
use Symfony\Component\Validator\Constraints as Assert;
15
16
/**
17
 * Class SummaryDetailV2
18
 * @package Greenter\Model\Summary
19
 */
20
class SummaryDetailV2
21
{
22
    use SummaryDetailV2Validator;
23
24
    /**
25
     * @Assert\NotBlank()
26
     * @Assert\Length(min="2", max="2")
27
     * @var string
28
     */
29
    private $tipoDoc;
30
31
    /**
32
     * @Assert\NotBlank()
33
     * @Assert\Length(max="13")
34
     * @var string
35
     */
36
    private $serieNro;
37
38
    /**
39
     * @Assert\NotBlank()
40
     * @Assert\Length(max="1")
41
     * @var string
42
     */
43
    private $clienteTipo;
44
45
    /**
46
     * @Assert\NotBlank()
47
     * @Assert\Length(max="20")
48
     * @var string
49
     */
50
    private $clienteNro;
51
52
    /**
53
     * Boleta de Venta que se modifica.
54
     *
55
     * @Assert\Valid()
56
     * @var Document
57
     */
58
    private $docReferencia;
59
60
    /**
61
     * Estado del item (catalog: 19).
62
     *
63
     * @Assert\NotBlank()
64
     * @Assert\Length(max="1")
65
     * @var string
66
     */
67
    private $estado;
68
69
    /**
70
     * @Assert\NotBlank()
71
     * @var float
72
     */
73
    private $total;
74
75
    /**
76
     * @Assert\NotBlank()
77
     * @var float
78
     */
79
    private $mtoOperGravadas;
80
81
    /**
82
     * @Assert\NotBlank()
83
     * @var float
84
     */
85
    private $mtoOperInafectas;
86
87
    /**
88
     * @Assert\NotBlank()
89
     * @var float
90
     */
91
    private $mtoOperExoneradas;
92
93
    /**
94
     * @var float
95
     */
96
    private $mtoDescuentos;
97
98
    /**
99
     * @Assert\NotBlank()
100
     * @var float
101
     */
102
    private $mtoIGV;
103
104
    /**
105
     * @var float
106
     */
107
    private $mtoISC;
108
109
    /**
110
     * @var float
111
     */
112
    private $mtoOtrosTributos;
113
114
    /**
115
     * @return string
116
     */
117 4
    public function getTipoDoc()
118
    {
119 4
        return $this->tipoDoc;
120
    }
121
122
    /**
123
     * @param string $tipoDoc
124
     * @return SummaryDetailV2
125
     */
126 12
    public function setTipoDoc($tipoDoc)
127
    {
128 12
        $this->tipoDoc = $tipoDoc;
129 12
        return $this;
130
    }
131
132
    /**
133
     * @return string
134
     */
135 4
    public function getSerieNro()
136
    {
137 4
        return $this->serieNro;
138
    }
139
140
    /**
141
     * @param string $serieNro
142
     * @return SummaryDetailV2
143
     */
144 12
    public function setSerieNro($serieNro)
145
    {
146 12
        $this->serieNro = $serieNro;
147 12
        return $this;
148
    }
149
150
    /**
151
     * @return string
152
     */
153 4
    public function getClienteTipo()
154
    {
155 4
        return $this->clienteTipo;
156
    }
157
158
    /**
159
     * @param string $clienteTipo
160
     * @return SummaryDetailV2
161
     */
162 12
    public function setClienteTipo($clienteTipo)
163
    {
164 12
        $this->clienteTipo = $clienteTipo;
165 12
        return $this;
166
    }
167
168
    /**
169
     * @return string
170
     */
171 4
    public function getClienteNro()
172
    {
173 4
        return $this->clienteNro;
174
    }
175
176
    /**
177
     * @param string $clienteNro
178
     * @return SummaryDetailV2
179
     */
180 12
    public function setClienteNro($clienteNro)
181
    {
182 12
        $this->clienteNro = $clienteNro;
183 12
        return $this;
184
    }
185
186
    /**
187
     * @return Document
188
     */
189 4
    public function getDocReferencia()
190
    {
191 4
        return $this->docReferencia;
192
    }
193
194
    /**
195
     * @param Document $docReferencia
196
     * @return SummaryDetailV2
197
     */
198 12
    public function setDocReferencia($docReferencia)
199
    {
200 12
        $this->docReferencia = $docReferencia;
201 12
        return $this;
202
    }
203
204
    /**
205
     * @return string
206
     */
207 4
    public function getEstado()
208
    {
209 4
        return $this->estado;
210
    }
211
212
    /**
213
     * @param string $estado
214
     * @return SummaryDetailV2
215
     */
216 12
    public function setEstado($estado)
217
    {
218 12
        $this->estado = $estado;
219 12
        return $this;
220
    }
221
222
    /**
223
     * @return float
224
     */
225 4
    public function getTotal()
226
    {
227 4
        return $this->total;
228
    }
229
230
    /**
231
     * @param float $total
232
     * @return SummaryDetailV2
233
     */
234 12
    public function setTotal($total)
235
    {
236 12
        $this->total = $total;
237 12
        return $this;
238
    }
239
240
    /**
241
     * @return float
242
     */
243 4
    public function getMtoOperGravadas()
244
    {
245 4
        return $this->mtoOperGravadas;
246
    }
247
248
    /**
249
     * @param float $mtoOperGravadas
250
     * @return SummaryDetailV2
251
     */
252 12
    public function setMtoOperGravadas($mtoOperGravadas)
253
    {
254 12
        $this->mtoOperGravadas = $mtoOperGravadas;
255 12
        return $this;
256
    }
257
258
    /**
259
     * @return float
260
     */
261 4
    public function getMtoOperInafectas()
262
    {
263 4
        return $this->mtoOperInafectas;
264
    }
265
266
    /**
267
     * @param float $mtoOperInafectas
268
     * @return SummaryDetailV2
269
     */
270 12
    public function setMtoOperInafectas($mtoOperInafectas)
271
    {
272 12
        $this->mtoOperInafectas = $mtoOperInafectas;
273 12
        return $this;
274
    }
275
276
    /**
277
     * @return float
278
     */
279 4
    public function getMtoOperExoneradas()
280
    {
281 4
        return $this->mtoOperExoneradas;
282
    }
283
284
    /**
285
     * @param float $mtoOperExoneradas
286
     * @return SummaryDetailV2
287
     */
288 12
    public function setMtoOperExoneradas($mtoOperExoneradas)
289
    {
290 12
        $this->mtoOperExoneradas = $mtoOperExoneradas;
291 12
        return $this;
292
    }
293
294
    /**
295
     * @return float
296
     */
297 4
    public function getMtoDescuentos()
298
    {
299 4
        return $this->mtoDescuentos;
300
    }
301
302
    /**
303
     * @param float $mtoDescuentos
304
     * @return SummaryDetailV2
305
     */
306 12
    public function setMtoDescuentos($mtoDescuentos)
307
    {
308 12
        $this->mtoDescuentos = $mtoDescuentos;
309 12
        return $this;
310
    }
311
312
    /**
313
     * @return float
314
     */
315 4
    public function getMtoIGV()
316
    {
317 4
        return $this->mtoIGV;
318
    }
319
320
    /**
321
     * @param float $mtoIGV
322
     * @return SummaryDetailV2
323
     */
324 12
    public function setMtoIGV($mtoIGV)
325
    {
326 12
        $this->mtoIGV = $mtoIGV;
327 12
        return $this;
328
    }
329
330
    /**
331
     * @return float
332
     */
333 4
    public function getMtoISC()
334
    {
335 4
        return $this->mtoISC;
336
    }
337
338
    /**
339
     * @param float $mtoISC
340
     * @return SummaryDetailV2
341
     */
342 12
    public function setMtoISC($mtoISC)
343
    {
344 12
        $this->mtoISC = $mtoISC;
345 12
        return $this;
346
    }
347
348
    /**
349
     * @return float
350
     */
351 4
    public function getMtoOtrosTributos()
352
    {
353 4
        return $this->mtoOtrosTributos;
354
    }
355
356
    /**
357
     * @param float $mtoOtrosTributos
358
     * @return SummaryDetailV2
359
     */
360 10
    public function setMtoOtrosTributos($mtoOtrosTributos)
361
    {
362 10
        $this->mtoOtrosTributos = $mtoOtrosTributos;
363 10
        return $this;
364
    }
365
}