Test Failed
Push — master ( 3039cd...fafff9 )
by Giancarlos
02:43
created

Prepayment::getTotal()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 4
rs 10
c 0
b 0
f 0
cc 1
eloc 2
nc 1
nop 0
1
<?php
2
/**
3
 * Created by PhpStorm.
4
 * User: Administrador
5
 * Date: 27/09/2017
6
 * Time: 08:21 PM
7
 */
8
9
namespace Greenter\Model\Sale;
10
11
use Symfony\Component\Validator\Constraints as Assert;
12
13
/**
14
 * Class Prepayment
15
 * @package Greenter\Model\Sale
16
 */
17
class Prepayment
18
{
19
    /**
20
     * @Assert\NotBlank()
21
     * @Assert\Length(min="2", max="2")
22
     * @var string
23
     */
24
    private $tipoDocRel;
25
26
    /**
27
     * @Assert\NotBlank()
28
     * @Assert\Length(max="30")
29
     * @var string
30
     */
31
    private $nroDocRel;
32
33
    /**
34
     * @Assert\NotBlank()
35
     * @Assert\Type("numeric")
36
     * @var float
37
     */
38
    private $total;
39
40
    /**
41
     * @var string
42
     * @Assert\NotBlank()
43
     * @Assert\Length(max="1")
44
     */
45
    private $tipoDocEmisor;
46
47
    /**
48
     * @Assert\NotBlank()
49
     * @Assert\Length(max="15")
50
     * @var string
51
     */
52
    private $nroDocEmisor;
53
54
    /**
55
     * @return string
56
     */
57
    public function getTipoDocRel()
58
    {
59
        return $this->tipoDocRel;
60
    }
61
62
    /**
63
     * @param string $tipoDocRel
64
     * @return Prepayment
65
     */
66
    public function setTipoDocRel($tipoDocRel)
67
    {
68
        $this->tipoDocRel = $tipoDocRel;
69
        return $this;
70
    }
71
72
    /**
73
     * @return string
74
     */
75
    public function getNroDocRel()
76
    {
77
        return $this->nroDocRel;
78
    }
79
80
    /**
81
     * @param string $nroDocRel
82
     * @return Prepayment
83
     */
84
    public function setNroDocRel($nroDocRel)
85
    {
86
        $this->nroDocRel = $nroDocRel;
87
        return $this;
88
    }
89
90
    /**
91
     * @return float
92
     */
93
    public function getTotal()
94
    {
95
        return $this->total;
96
    }
97
98
    /**
99
     * @param float $total
100
     * @return Prepayment
101
     */
102
    public function setTotal($total)
103
    {
104
        $this->total = $total;
105
        return $this;
106
    }
107
108
    /**
109
     * @return string
110
     */
111
    public function getTipoDocEmisor()
112
    {
113
        return $this->tipoDocEmisor;
114
    }
115
116
    /**
117
     * @param string $tipoDocEmisor
118
     * @return Prepayment
119
     */
120
    public function setTipoDocEmisor($tipoDocEmisor)
121
    {
122
        $this->tipoDocEmisor = $tipoDocEmisor;
123
        return $this;
124
    }
125
126
    /**
127
     * @return string
128
     */
129
    public function getNroDocEmisor()
130
    {
131
        return $this->nroDocEmisor;
132
    }
133
134
    /**
135
     * @param string $nroDocEmisor
136
     * @return Prepayment
137
     */
138
    public function setNroDocEmisor($nroDocEmisor)
139
    {
140
        $this->nroDocEmisor = $nroDocEmisor;
141
        return $this;
142
    }
143
}