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

Document   A

Complexity

Total Complexity 4

Size/Duplication

Total Lines 53
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Test Coverage

Coverage 0%

Importance

Changes 0
Metric Value
wmc 4
lcom 0
cbo 0
dl 0
loc 53
ccs 0
cts 18
cp 0
rs 10
c 0
b 0
f 0

4 Methods

Rating   Name   Duplication   Size   Complexity  
A getTipoDoc() 0 4 1
A setTipoDoc() 0 5 1
A getNroDoc() 0 4 1
A setNroDoc() 0 5 1
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
}