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

VoidedDetail::setCorrelativo()   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: Giansalex
5
 * Date: 15/07/2017
6
 * Time: 22:00
7
 */
8
9
namespace Greenter\Model\Voided;
10
11
use Greenter\Xml\Validator\VoidedDetailValidator;
12
use Symfony\Component\Validator\Constraints as Assert;
13
14
/**
15
 * Class VoidedDetail
16
 * @package Greenter\Model\Voided
17
 */
18
class VoidedDetail
19
{
20
    use VoidedDetailValidator;
21
22
    /**
23
     * @Assert\NotBlank()
24
     * @Assert\Length(max="2")
25
     * @var string
26
     */
27
    private $tipoDoc;
28
29
    /**
30
     * @Assert\NotBlank()
31
     * @Assert\Length(max="4")
32
     * @var string
33
     */
34
    private $serie;
35
36
    /**
37
     * @Assert\NotBlank()
38
     * @Assert\Length(max="8")
39
     * @var string
40
     */
41
    private $correlativo;
42
43
    /**
44
     * @Assert\NotBlank()
45
     * @Assert\Length(max="100")
46
     * @var string
47
     */
48
    private $desMotivoBaja;
49
50
    /**
51
     * @return string
52
     */
53 2
    public function getTipoDoc()
54
    {
55 2
        return $this->tipoDoc;
56
    }
57
58
    /**
59
     * @param string $tipoDoc
60
     * @return VoidedDetail
61
     */
62 2
    public function setTipoDoc($tipoDoc)
63
    {
64 2
        $this->tipoDoc = $tipoDoc;
65 2
        return $this;
66
    }
67
68
    /**
69
     * @return string
70
     */
71 2
    public function getSerie()
72
    {
73 2
        return $this->serie;
74
    }
75
76
    /**
77
     * @param string $serie
78
     * @return VoidedDetail
79
     */
80 2
    public function setSerie($serie)
81
    {
82 2
        $this->serie = $serie;
83 2
        return $this;
84
    }
85
86
    /**
87
     * @return string
88
     */
89 2
    public function getCorrelativo()
90
    {
91 2
        return $this->correlativo;
92
    }
93
94
    /**
95
     * @param string $correlativo
96
     * @return VoidedDetail
97
     */
98 2
    public function setCorrelativo($correlativo)
99
    {
100 2
        $this->correlativo = $correlativo;
101 2
        return $this;
102
    }
103
104
    /**
105
     * @return string
106
     */
107 2
    public function getDesMotivoBaja()
108
    {
109 2
        return $this->desMotivoBaja;
110
    }
111
112
    /**
113
     * @param string $desMotivoBaja
114
     * @return VoidedDetail
115
     */
116 2
    public function setDesMotivoBaja($desMotivoBaja)
117
    {
118 2
        $this->desMotivoBaja = $desMotivoBaja;
119 2
        return $this;
120
    }
121
}