Completed
Push — master ( 1ed55c...1adee7 )
by Giancarlos
03:47
created

Transportist   A

Complexity

Total Complexity 12

Size/Duplication

Total Lines 160
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Test Coverage

Coverage 100%

Importance

Changes 1
Bugs 0 Features 0
Metric Value
wmc 12
c 1
b 0
f 0
lcom 0
cbo 1
dl 0
loc 160
ccs 30
cts 30
cp 1
rs 10

12 Methods

Rating   Name   Duplication   Size   Complexity  
A getTipoDoc() 0 4 1
A setTipoDoc() 0 5 1
A getNumDoc() 0 4 1
A setNumDoc() 0 5 1
A getRznSocial() 0 4 1
A setRznSocial() 0 5 1
A getPlaca() 0 4 1
A setPlaca() 0 5 1
A getChoferTipoDoc() 0 4 1
A setChoferTipoDoc() 0 5 1
A getChoferDoc() 0 4 1
A setChoferDoc() 0 5 1
1
<?php
2
/**
3
 * Created by PhpStorm.
4
 * User: Giansalex
5
 * Date: 07/08/2017
6
 * Time: 23:39
7
 */
8
9
namespace Greenter\Model\Despatch;
10
use Greenter\Xml\Validator\TransportistValidator;
11
use Symfony\Component\Validator\Constraints as Assert;
12
13
/**
14
 * Class Transportist
15
 * @package Greenter\Model\Despatch
16
 */
17
class Transportist
18
{
19
    use TransportistValidator;
20
21
    /**
22
     * @Assert\NotBlank()
23
     * @Assert\Length(min="1", max="1")
24
     * @var string
25
     */
26
    private $tipoDoc;
27
28
    /**
29
     * @Assert\NotBlank()
30
     * @Assert\Length(max="15")
31
     * @var string
32
     */
33
    private $numDoc;
34
35
    /**
36
     * @Assert\NotBlank()
37
     * @Assert\Length(max="100")
38
     * @var string
39
     */
40
    private $rznSocial;
41
42
    /**
43
     * (Transporte Privado)
44
     *
45
     * @Assert\NotBlank()
46
     * @Assert\Length(max="8")
47
     * @var string
48
     */
49
    private $placa;
50
51
    /**
52
     * (Transporte Privado)
53
     *
54
     * @Assert\NotBlank()
55
     * @Assert\Length(min="1", max="1")
56
     * @var string
57
     */
58
    private $choferTipoDoc;
59
60
    /**
61
     * (Transporte Privado)
62
     *
63
     * @Assert\NotBlank()
64
     * @Assert\Length(max="11")
65
     * @var string
66
     */
67
    private $choferDoc;
68
69
    /**
70
     * @return string
71
     */
72 2
    public function getTipoDoc()
73
    {
74 2
        return $this->tipoDoc;
75
    }
76
77
    /**
78
     * @param string $tipoDoc
79
     * @return Transportist
80
     */
81 6
    public function setTipoDoc($tipoDoc)
82
    {
83 6
        $this->tipoDoc = $tipoDoc;
84 6
        return $this;
85
    }
86
87
    /**
88
     * @return string
89
     */
90 2
    public function getNumDoc()
91
    {
92 2
        return $this->numDoc;
93
    }
94
95
    /**
96
     * @param string $numDoc
97
     * @return Transportist
98
     */
99 6
    public function setNumDoc($numDoc)
100
    {
101 6
        $this->numDoc = $numDoc;
102 6
        return $this;
103
    }
104
105
    /**
106
     * @return string
107
     */
108 2
    public function getRznSocial()
109
    {
110 2
        return $this->rznSocial;
111
    }
112
113
    /**
114
     * @param string $rznSocial
115
     * @return Transportist
116
     */
117 6
    public function setRznSocial($rznSocial)
118
    {
119 6
        $this->rznSocial = $rznSocial;
120 6
        return $this;
121
    }
122
123
    /**
124
     * @return string
125
     */
126 2
    public function getPlaca()
127
    {
128 2
        return $this->placa;
129
    }
130
131
    /**
132
     * @param string $placa
133
     * @return Transportist
134
     */
135 6
    public function setPlaca($placa)
136
    {
137 6
        $this->placa = $placa;
138 6
        return $this;
139
    }
140
141
    /**
142
     * @return string
143
     */
144 2
    public function getChoferTipoDoc()
145
    {
146 2
        return $this->choferTipoDoc;
147
    }
148
149
    /**
150
     * @param string $choferTipoDoc
151
     * @return Transportist
152
     */
153 6
    public function setChoferTipoDoc($choferTipoDoc)
154
    {
155 6
        $this->choferTipoDoc = $choferTipoDoc;
156 6
        return $this;
157
    }
158
159
    /**
160
     * @return string
161
     */
162 2
    public function getChoferDoc()
163
    {
164 2
        return $this->choferDoc;
165
    }
166
167
    /**
168
     * @param string $choferDoc
169
     * @return Transportist
170
     */
171 6
    public function setChoferDoc($choferDoc)
172
    {
173 6
        $this->choferDoc = $choferDoc;
174 6
        return $this;
175
    }
176
}