Passed
Push — master ( a43e58...4ea7aa )
by Giancarlos
08:09
created

Prepayment::getNroDocEmisor()   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 1
Bugs 0 Features 0
Metric Value
dl 0
loc 4
ccs 0
cts 2
cp 0
rs 10
c 1
b 0
f 0
cc 1
eloc 2
nc 1
nop 0
crap 2
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 Greenter\Xml\Validator\PrepaymentValidator;
12
use Symfony\Component\Validator\Constraints as Assert;
13
14
/**
15
 * Class Prepayment
16
 * @package Greenter\Model\Sale
17
 */
18
class Prepayment
19
{
20
    use PrepaymentValidator;
21
22
    /**
23
     * @Assert\NotBlank()
24
     * @Assert\Length(min="2", max="2")
25
     * @var string
26
     */
27
    private $tipoDocRel;
28
29
    /**
30
     * @Assert\NotBlank()
31
     * @Assert\Length(max="30")
32
     * @var string
33
     */
34
    private $nroDocRel;
35
36
    /**
37
     * @Assert\NotBlank()
38
     * @Assert\Type("numeric")
39
     * @var float
40
     */
41
    private $total;
42
43
    /**
44
     * @return string
45
     */
46 2
    public function getTipoDocRel()
47
    {
48 2
        return $this->tipoDocRel;
49
    }
50
51
    /**
52
     * @param string $tipoDocRel
53
     * @return Prepayment
54
     */
55 12
    public function setTipoDocRel($tipoDocRel)
56
    {
57 12
        $this->tipoDocRel = $tipoDocRel;
58 12
        return $this;
59
    }
60
61
    /**
62
     * @return string
63
     */
64 2
    public function getNroDocRel()
65
    {
66 2
        return $this->nroDocRel;
67
    }
68
69
    /**
70
     * @param string $nroDocRel
71
     * @return Prepayment
72
     */
73 12
    public function setNroDocRel($nroDocRel)
74
    {
75 12
        $this->nroDocRel = $nroDocRel;
76 12
        return $this;
77
    }
78
79
    /**
80
     * @return float
81
     */
82 2
    public function getTotal()
83
    {
84 2
        return $this->total;
85
    }
86
87
    /**
88
     * @param float $total
89
     * @return Prepayment
90
     */
91 12
    public function setTotal($total)
92
    {
93 12
        $this->total = $total;
94 12
        return $this;
95
    }
96
}