Completed
Push — master ( b463b0...ee9a04 )
by Giancarlos
02:48
created

Company::getRazonSocial()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 2
CRAP Score 1

Importance

Changes 0
Metric Value
c 0
b 0
f 0
dl 0
loc 4
ccs 2
cts 2
cp 1
rs 10
cc 1
eloc 2
nc 1
nop 0
crap 1
1
<?php
2
/**
3
 * Created by PhpStorm.
4
 * User: Giansalex
5
 * Date: 16/07/2017
6
 * Time: 21:03
7
 */
8
9
namespace Greenter\Xml\Model\Company;
10
11
use Symfony\Component\Validator\Constraints as Assert;
12
13
/**
14
 * Class Company
15
 * @package Greenter\Xml\Model\Company
16
 */
17
class Company
18
{
19
    /**
20
     * @Assert\NotBlank()
21
     * @Assert\Length(max="11", min="11")
22
     * @var string
23
     */
24
    private $ruc;
25
26
    /**
27
     * @Assert\NotBlank()
28
     * @Assert\Length(max="100")
29
     * @var string
30
     */
31
    private $razonSocial;
32
33
    /**
34
     * @Assert\Length(max="100")
35
     * @var string
36
     */
37
    private $nombreComercial;
38
39
    /**
40
     * @Assert\Valid()
41
     * @var Address
42
     */
43
    private $address;
44
45
    /**
46
     * @return string
47
     */
48 10
    public function getRuc()
49
    {
50 10
        return $this->ruc;
51
    }
52
53
    /**
54
     * @param string $ruc
55
     * @return Company
56
     */
57 10
    public function setRuc($ruc)
58
    {
59 10
        $this->ruc = $ruc;
60 10
        return $this;
61
    }
62
63
    /**
64
     * @return string
65
     */
66 10
    public function getRazonSocial()
67
    {
68 10
        return $this->razonSocial;
69
    }
70
71
    /**
72
     * @param string $razonSocial
73
     * @return Company
74
     */
75 10
    public function setRazonSocial($razonSocial)
76
    {
77 10
        $this->razonSocial = $razonSocial;
78 10
        return $this;
79
    }
80
81
    /**
82
     * @return string
83
     */
84 10
    public function getNombreComercial()
85
    {
86 10
        return $this->nombreComercial;
87
    }
88
89
    /**
90
     * @param string $nombreComercial
91
     * @return Company
92
     */
93 10
    public function setNombreComercial($nombreComercial)
94
    {
95 10
        $this->nombreComercial = $nombreComercial;
96 10
        return $this;
97
    }
98
99
    /**
100
     * @return Address
101
     */
102 6
    public function getAddress()
103
    {
104 6
        return $this->address;
105
    }
106
107
    /**
108
     * @param Address $address
109
     * @return Company
110
     */
111 10
    public function setAddress($address)
112
    {
113 10
        $this->address = $address;
114 10
        return $this;
115
    }
116
}