Test Failed
Push — master ( a47c2b...4d6576 )
by Giancarlos
04:07
created

EmbededDespatch::getLlegada()   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: 28/09/2017
6
 * Time: 05:19 PM
7
 */
8
9
namespace Greenter\Model\Sale;
10
11
use Greenter\Model\Client\Client;
12
use Greenter\Model\Despatch\Direction;
13
use Greenter\Xml\Validator\EmbededDespatchValidator;
14
use Symfony\Component\Validator\Constraints as Assert;
15
16
/**
17
 * Class EmbededDespatch
18
 * @package Greenter\Model\Sale
19
 */
20
class EmbededDespatch
21
{
22
    use EmbededDespatchValidator;
23
24
    /**
25
     * @Assert\Valid()
26
     * @var Direction
27
     */
28
    private $llegada;
29
30
    /**
31
     * @Assert\Valid()
32
     * @var Direction
33
     */
34
    private $partida;
35
36
    /**
37
     * @Assert\Valid()
38
     * @var Client
39
     */
40
    private $transportista;
41
42
    /**
43
     * N° de licencia de conducir
44
     *
45
     * @Assert\Length(max="30")
46
     * @var string
47
     */
48
    private $nroLicencia;
49
50
    /**
51
     * @Assert\Length(max="10")
52
     * @var string
53
     */
54
    private $transpPlaca;
55
56
    /**
57
     * @Assert\Length(max="50")
58
     * @var string
59
     */
60
    private $transpCodeAuth;
61
62
    /**
63
     * @Assert\Length(max="50")
64
     * @var string
65
     */
66
    private $transpMarca;
67
68
    /**
69
     * @Assert\Length(min="2", max="2")
70
     * @var string
71
     */
72
    private $modTraslado;
73
74
    /**
75
     * @Assert\Type("numeric")
76
     * @var float
77
     */
78
    private $pesoBruto;
79
80
    /**
81
     * @Assert\Length(max="4")
82
     * @var string
83
     */
84
    private $undPesoBruto;
85
86
    /**
87
     * @return Direction
88
     */
89
    public function getLlegada()
90
    {
91
        return $this->llegada;
92
    }
93
94
    /**
95
     * @param Direction $llegada
96
     * @return EmbededDespatch
97
     */
98
    public function setLlegada($llegada)
99
    {
100
        $this->llegada = $llegada;
101
        return $this;
102
    }
103
104
    /**
105
     * @return Direction
106
     */
107
    public function getPartida()
108
    {
109
        return $this->partida;
110
    }
111
112
    /**
113
     * @param Direction $partida
114
     * @return EmbededDespatch
115
     */
116
    public function setPartida($partida)
117
    {
118
        $this->partida = $partida;
119
        return $this;
120
    }
121
122
    /**
123
     * @return Client
124
     */
125
    public function getTransportista()
126
    {
127
        return $this->transportista;
128
    }
129
130
    /**
131
     * @param Client $transportista
132
     * @return EmbededDespatch
133
     */
134
    public function setTransportista($transportista)
135
    {
136
        $this->transportista = $transportista;
137
        return $this;
138
    }
139
140
    /**
141
     * @return string
142
     */
143
    public function getNroLicencia()
144
    {
145
        return $this->nroLicencia;
146
    }
147
148
    /**
149
     * @param string $nroLicencia
150
     * @return EmbededDespatch
151
     */
152
    public function setNroLicencia($nroLicencia)
153
    {
154
        $this->nroLicencia = $nroLicencia;
155
        return $this;
156
    }
157
158
    /**
159
     * @return string
160
     */
161
    public function getTranspPlaca()
162
    {
163
        return $this->transpPlaca;
164
    }
165
166
    /**
167
     * @param string $transpPlaca
168
     * @return EmbededDespatch
169
     */
170
    public function setTranspPlaca($transpPlaca)
171
    {
172
        $this->transpPlaca = $transpPlaca;
173
        return $this;
174
    }
175
176
    /**
177
     * @return string
178
     */
179
    public function getTranspCodeAuth()
180
    {
181
        return $this->transpCodeAuth;
182
    }
183
184
    /**
185
     * @param string $transpCodeAuth
186
     * @return EmbededDespatch
187
     */
188
    public function setTranspCodeAuth($transpCodeAuth)
189
    {
190
        $this->transpCodeAuth = $transpCodeAuth;
191
        return $this;
192
    }
193
194
    /**
195
     * @return string
196
     */
197
    public function getTranspMarca()
198
    {
199
        return $this->transpMarca;
200
    }
201
202
    /**
203
     * @param string $transpMarca
204
     * @return EmbededDespatch
205
     */
206
    public function setTranspMarca($transpMarca)
207
    {
208
        $this->transpMarca = $transpMarca;
209
        return $this;
210
    }
211
212
    /**
213
     * @return string
214
     */
215
    public function getModTraslado()
216
    {
217
        return $this->modTraslado;
218
    }
219
220
    /**
221
     * @param string $modTraslado
222
     * @return EmbededDespatch
223
     */
224
    public function setModTraslado($modTraslado)
225
    {
226
        $this->modTraslado = $modTraslado;
227
        return $this;
228
    }
229
230
    /**
231
     * @return float
232
     */
233
    public function getPesoBruto()
234
    {
235
        return $this->pesoBruto;
236
    }
237
238
    /**
239
     * @param float $pesoBruto
240
     * @return EmbededDespatch
241
     */
242
    public function setPesoBruto($pesoBruto)
243
    {
244
        $this->pesoBruto = $pesoBruto;
245
        return $this;
246
    }
247
248
    /**
249
     * @return string
250
     */
251
    public function getUndPesoBruto()
252
    {
253
        return $this->undPesoBruto;
254
    }
255
256
    /**
257
     * @param string $undPesoBruto
258
     * @return EmbededDespatch
259
     */
260
    public function setUndPesoBruto($undPesoBruto)
261
    {
262
        $this->undPesoBruto = $undPesoBruto;
263
        return $this;
264
    }
265
}