Test Failed
Push — master ( a47c2b...4d6576 )
by Giancarlos
04:07
created

Note::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:51
7
 */
8
9
namespace Greenter\Model\Sale;
10
11
use Greenter\Xml\Validator\NoteValidator;
12
use Symfony\Component\Validator\Constraints as Assert;
13
14
/**
15
 * Class Note
16
 * @package Greenter\Model\Sale
17
 */
18
class Note extends BaseSale
19
{
20
    use NoteValidator;
21
22
    /**
23
     * @Assert\NotBlank()
24
     * @Assert\Length(min="2", max="2")
25
     * @var string
26
     */
27
    private $codMotivo;
28
29
    /**
30
     * @Assert\NotBlank()
31
     * @Assert\Length(max="250")
32
     * @var string
33
     */
34
    private $desMotivo;
35
36
    /**
37
     * @Assert\NotBlank()
38
     * @Assert\Length(min="2", max="2")
39
     * @var string
40
     */
41
    private $tipDocAfectado;
42
43
    /**
44
     * @Assert\NotBlank()
45
     * @Assert\Length(max="13")
46
     * @var string
47
     */
48
    private $numDocfectado;
49
50
    /**
51
     * @var float
52
     */
53
    private $mtoOperGratuitas;
54
55
    /**
56
     * @Assert\Valid()
57
     *
58
     * @var SalePerception
59
     */
60
    private $perception;
61
62
    /**
63
     * @return string
64
     */
65 8
    public function getCodMotivo()
66
    {
67 8
        return $this->codMotivo;
68
    }
69
70
    /**
71
     * @param string $codMotivo
72
     * @return Note
73
     */
74 12
    public function setCodMotivo($codMotivo)
75
    {
76 12
        $this->codMotivo = $codMotivo;
77 12
        return $this;
78
    }
79
80
    /**
81
     * @return string
82
     */
83 8
    public function getDesMotivo()
84
    {
85 8
        return $this->desMotivo;
86
    }
87
88
    /**
89
     * @param string $desMotivo
90
     * @return Note
91
     */
92 12
    public function setDesMotivo($desMotivo)
93
    {
94 12
        $this->desMotivo = $desMotivo;
95 12
        return $this;
96
    }
97
98
    /**
99
     * @return string
100
     */
101 8
    public function getTipDocAfectado()
102
    {
103 8
        return $this->tipDocAfectado;
104
    }
105
106
    /**
107
     * @param string $tipDocAfectado
108
     * @return Note
109
     */
110 12
    public function setTipDocAfectado($tipDocAfectado)
111
    {
112 12
        $this->tipDocAfectado = $tipDocAfectado;
113 12
        return $this;
114
    }
115
116
    /**
117
     * @return string
118
     */
119 8
    public function getNumDocfectado()
120
    {
121 8
        return $this->numDocfectado;
122
    }
123
124
    /**
125
     * @param string $numDocfectado
126
     * @return Note
127
     */
128 12
    public function setNumDocfectado($numDocfectado)
129
    {
130 12
        $this->numDocfectado = $numDocfectado;
131 12
        return $this;
132
    }
133
134
    /**
135
     * @return float
136
     */
137 8
    public function getMtoOperGratuitas()
138
    {
139 8
        return $this->mtoOperGratuitas;
140
    }
141
142
    /**
143
     * @param float $mtoOperGratuitas
144
     * @return Note
145
     */
146
    public function setMtoOperGratuitas($mtoOperGratuitas)
147
    {
148
        $this->mtoOperGratuitas = $mtoOperGratuitas;
149
        return $this;
150
    }
151
152
    /**
153
     * @return SalePerception
154
     */
155 8
    public function getPerception()
156
    {
157 8
        return $this->perception;
158
    }
159
160
    /**
161
     * @param SalePerception $perception
162
     * @return Note
163
     */
164
    public function setPerception($perception)
165
    {
166
        $this->perception = $perception;
167
        return $this;
168
    }
169
}