Completed
Push — master ( c97ce9...476a1d )
by Giancarlos
03:06
created

Invoice::setPerception()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 5
Code Lines 3

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 0
CRAP Score 2

Importance

Changes 0
Metric Value
dl 0
loc 5
ccs 0
cts 3
cp 0
rs 9.4285
c 0
b 0
f 0
cc 1
eloc 3
nc 1
nop 1
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
     * @return string
52
     */
53 6
    public function getTipoOperacion()
54
    {
55 6
        return $this->tipoOperacion;
56
    }
57
58
    /**
59
     * @param string $tipoOperacion
60
     * @return Invoice
61
     */
62
    public function setTipoOperacion($tipoOperacion)
63
    {
64
        $this->tipoOperacion = $tipoOperacion;
65
        return $this;
66
    }
67
68
    /**
69
     * @return float
70
     */
71 6
    public function getSumDsctoGlobal()
72
    {
73 6
        return $this->sumDsctoGlobal;
74
    }
75
76
    /**
77
     * @param float $sumDsctoGlobal
78
     * @return Invoice
79
     */
80
    public function setSumDsctoGlobal($sumDsctoGlobal)
81
    {
82
        $this->sumDsctoGlobal = $sumDsctoGlobal;
83
        return $this;
84
    }
85
86
    /**
87
     * @return float
88
     */
89 6
    public function getMtoDescuentos()
90
    {
91 6
        return $this->mtoDescuentos;
92
    }
93
94
    /**
95
     * @param float $mtoDescuentos
96
     * @return Invoice
97
     */
98
    public function setMtoDescuentos($mtoDescuentos)
99
    {
100
        $this->mtoDescuentos = $mtoDescuentos;
101
        return $this;
102
    }
103
104
    /**
105
     * @return float
106
     */
107 6
    public function getMtoOperGratuitas()
108
    {
109 6
        return $this->mtoOperGratuitas;
110
    }
111
112
    /**
113
     * @param float $mtoOperGratuitas
114
     * @return Invoice
115
     */
116
    public function setMtoOperGratuitas($mtoOperGratuitas)
117
    {
118
        $this->mtoOperGratuitas = $mtoOperGratuitas;
119
        return $this;
120
    }
121
122
    /**
123
     * @return SalePerception
124
     */
125 6
    public function getPerception()
126
    {
127 6
        return $this->perception;
128
    }
129
130
    /**
131
     * @param SalePerception $perception
132
     * @return Invoice
133
     */
134
    public function setPerception($perception)
135
    {
136
        $this->perception = $perception;
137
        return $this;
138
    }
139
}