Test Failed
Push — master ( a2480a...435f39 )
by Giancarlos
03:23
created

Invoice::getGuias()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 0
CRAP Score 2

Importance

Changes 0
Metric Value
c 0
b 0
f 0
dl 0
loc 4
rs 10
cc 1
eloc 2
nc 1
nop 0
ccs 0
cts 0
cp 0
crap 2
1
<?php
2
/**
3
 * Created by PhpStorm.
4
 * User: Giansalex
5
 * Date: 15/07/2017
6
 * Time: 21:05
7
 */
8
9
namespace Greenter\Model\Sale;
10
11
use Greenter\Xml\Validator\InvoiceValidator;
12
use Symfony\Component\Validator\Constraints as Assert;
13
14
/**
15
 * Class Invoice
16
 * @package Greenter\Model\Sale
17
 */
18
class Invoice extends BaseSale
19
{
20
    use InvoiceValidator;
21
22
    /**
23
     * Tipo operacion (Catálogo 17).
24
     * @var string
25
     */
26
    private $tipoOperacion;
27
28
    /**
29
     * @var float
30
     */
31
    private $mtoOperGratuitas;
32
33
    /**
34
     * @var float
35
     */
36
    private $sumDsctoGlobal;
37
38
    /**
39
     * @var float
40
     */
41
    private $mtoDescuentos;
42
43
    /**
44
     * @Assert\Valid()
45
     *
46
     * @var SalePerception
47
     */
48
    private $perception;
49
50
    /**
51
     * Orden de Compra relacionado.
52
     *
53 12
     * @var string
54
     */
55 12
    private $compra;
56
57
    /**
58
     * Guias de Remision relacionado (caso de uso en venta itinerante).
59
     *
60
     * @Assert\Valid()
61
     *
62 12
     * @var Document[]
63
     */
64 12
    private $guias;
65 12
66
    /**
67
     * @Assert\Valid()
68
     *
69
     * @var Prepayment
70
     */
71 12
    private $anticipo;
72
73 12
    /**
74
     * @Assert\Valid()
75
     *
76
     * @var Detraction
77
     */
78
    private $detraccion;
79
80 12
    /**
81
     * @return string
82 12
     */
83 12
    public function getTipoOperacion()
84
    {
85
        return $this->tipoOperacion;
86
    }
87
88
    /**
89 12
     * @param string $tipoOperacion
90
     * @return Invoice
91 12
     */
92
    public function setTipoOperacion($tipoOperacion)
93
    {
94
        $this->tipoOperacion = $tipoOperacion;
95
        return $this;
96
    }
97
98 12
    /**
99
     * @return float
100 12
     */
101 12
    public function getSumDsctoGlobal()
102
    {
103
        return $this->sumDsctoGlobal;
104
    }
105
106
    /**
107 12
     * @param float $sumDsctoGlobal
108
     * @return Invoice
109 12
     */
110
    public function setSumDsctoGlobal($sumDsctoGlobal)
111
    {
112
        $this->sumDsctoGlobal = $sumDsctoGlobal;
113
        return $this;
114
    }
115
116 12
    /**
117
     * @return float
118 12
     */
119 12
    public function getMtoDescuentos()
120
    {
121
        return $this->mtoDescuentos;
122
    }
123
124
    /**
125 12
     * @param float $mtoDescuentos
126
     * @return Invoice
127 12
     */
128
    public function setMtoDescuentos($mtoDescuentos)
129
    {
130
        $this->mtoDescuentos = $mtoDescuentos;
131
        return $this;
132
    }
133
134 12
    /**
135
     * @return float
136 12
     */
137 12
    public function getMtoOperGratuitas()
138
    {
139
        return $this->mtoOperGratuitas;
140
    }
141
142
    /**
143
     * @param float $mtoOperGratuitas
144
     * @return Invoice
145
     */
146
    public function setMtoOperGratuitas($mtoOperGratuitas)
147
    {
148
        $this->mtoOperGratuitas = $mtoOperGratuitas;
149
        return $this;
150
    }
151
152
    /**
153
     * @return SalePerception
154
     */
155
    public function getPerception()
156
    {
157
        return $this->perception;
158
    }
159
160
    /**
161
     * @param SalePerception $perception
162
     * @return Invoice
163
     */
164
    public function setPerception($perception)
165
    {
166
        $this->perception = $perception;
167
        return $this;
168
    }
169
170
    /**
171
     * @return string
172
     */
173
    public function getCompra()
174
    {
175
        return $this->compra;
176
    }
177
178
    /**
179
     * @param string $compra
180
     * @return Invoice
181
     */
182
    public function setCompra($compra)
183
    {
184
        $this->compra = $compra;
185
        return $this;
186
    }
187
188
    /**
189
     * @return Document[]
190
     */
191
    public function getGuias()
192
    {
193
        return $this->guias;
194
    }
195
196
    /**
197
     * @param Document[] $guias
198
     * @return Invoice
199
     */
200
    public function setGuias($guias)
201
    {
202
        $this->guias = $guias;
203
        return $this;
204
    }
205
206
    /**
207
     * @return Prepayment
208
     */
209
    public function getAnticipo()
210
    {
211
        return $this->anticipo;
212
    }
213
214
    /**
215
     * @param Prepayment $anticipo
216
     * @return Invoice
217
     */
218
    public function setAnticipo($anticipo)
219
    {
220
        $this->anticipo = $anticipo;
221
        return $this;
222
    }
223
224
    /**
225
     * @return Detraction
226
     */
227
    public function getDetraccion()
228
    {
229
        return $this->detraccion;
230
    }
231
232
    /**
233
     * @param Detraction $detraccion
234
     * @return Invoice
235
     */
236
    public function setDetraccion($detraccion)
237
    {
238
        $this->detraccion = $detraccion;
239
        return $this;
240
    }
241
}