Completed
Push — master ( 491cb3...641a53 )
by Giancarlos
04:32
created

Document::getNroDoc()   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 0
Metric Value
dl 0
loc 4
ccs 0
cts 4
cp 0
rs 10
c 0
b 0
f 0
cc 1
eloc 2
nc 1
nop 0
crap 2
1
<?php
2
/**
3
 * Created by PhpStorm.
4
 * User: Giansalex
5
 * Date: 17/07/2017
6
 * Time: 23:39
7
 */
8
9
namespace Greenter\Xml\Model\Sale;
10
11
use Symfony\Component\Validator\Constraints as Assert;
12
13
/**
14
 * Class Document
15
 * @package Greenter\Xml\Model\Sale
16
 */
17
class Document
18
{
19
    /**
20
     * @Assert\Length(
21
     *     min="2",
22
     *     max="2"
23
     * )
24
     * @var string
25
     */
26
    private $tipoDoc;
27
28
    /**
29
     * @Assert\Length(max="30")
30
     * @var string
31
     */
32
    private $nroDoc;
33
34
    /**
35
     * @return string
36
     */
37
    public function getTipoDoc()
38
    {
39
        return $this->tipoDoc;
40
    }
41
42
    /**
43
     * @param string $tipoDoc
44
     * @return Document
45
     */
46
    public function setTipoDoc($tipoDoc)
47
    {
48
        $this->tipoDoc = $tipoDoc;
49
        return $this;
50
    }
51
52
    /**
53
     * @return string
54
     */
55
    public function getNroDoc()
56
    {
57
        return $this->nroDoc;
58
    }
59
60
    /**
61
     * @param string $nroDoc
62
     * @return Document
63
     */
64
    public function setNroDoc($nroDoc)
65
    {
66
        $this->nroDoc = $nroDoc;
67
        return $this;
68
    }
69
}