1
|
|
|
<?php |
2
|
|
|
|
3
|
|
|
namespace Loevgaard\DandomainFoundation\Entity; |
4
|
|
|
|
5
|
|
|
use Doctrine\ORM\Mapping as ORM; |
6
|
|
|
use Loevgaard\DandomainFoundation\Entity\Generated\DeliveryInterface; |
|
|
|
|
7
|
|
|
use Loevgaard\DandomainFoundation\Entity\Generated\DeliveryTrait; |
|
|
|
|
8
|
|
|
|
9
|
|
|
/** |
10
|
|
|
* @ORM\Entity() |
11
|
|
|
* @ORM\Table(name="ldf_deliveries") |
12
|
|
|
*/ |
13
|
|
|
class Delivery extends AbstractEntity implements DeliveryInterface |
14
|
|
|
{ |
15
|
|
|
use DeliveryTrait; |
16
|
|
|
|
17
|
|
|
/** |
18
|
|
|
* @var int |
19
|
|
|
* |
20
|
|
|
* @ORM\Id |
21
|
|
|
* @ORM\GeneratedValue |
22
|
|
|
* @ORM\Column(type="integer") |
23
|
|
|
**/ |
24
|
|
|
protected $id; |
25
|
|
|
|
26
|
|
|
/** |
27
|
|
|
* @var string|null |
28
|
|
|
* |
29
|
|
|
* @ORM\Column(nullable=true, type="string", length=191) |
30
|
|
|
*/ |
31
|
|
|
protected $address; |
32
|
|
|
|
33
|
|
|
/** |
34
|
|
|
* @var string|null |
35
|
|
|
* |
36
|
|
|
* @ORM\Column(nullable=true, type="string", length=191) |
37
|
|
|
*/ |
38
|
|
|
protected $address2; |
39
|
|
|
|
40
|
|
|
/** |
41
|
|
|
* @var string|null |
42
|
|
|
* |
43
|
|
|
* @ORM\Column(nullable=true, type="string", length=191) |
44
|
|
|
*/ |
45
|
|
|
protected $attention; |
46
|
|
|
|
47
|
|
|
/** |
48
|
|
|
* @var string|null |
49
|
|
|
* |
50
|
|
|
* @ORM\Column(nullable=true, type="string", length=191) |
51
|
|
|
*/ |
52
|
|
|
protected $city; |
53
|
|
|
|
54
|
|
|
/** |
55
|
|
|
* @var string|null |
56
|
|
|
* |
57
|
|
|
* @ORM\Column(nullable=true, type="string", length=191) |
58
|
|
|
*/ |
59
|
|
|
protected $country; |
60
|
|
|
|
61
|
|
|
/** |
62
|
|
|
* @var int|null |
63
|
|
|
* |
64
|
|
|
* @ORM\Column(nullable=true, type="integer") |
65
|
|
|
*/ |
66
|
|
|
protected $countryId; |
67
|
|
|
|
68
|
|
|
/** |
69
|
|
|
* @var string|null |
70
|
|
|
* |
71
|
|
|
* @ORM\Column(nullable=true, type="string", length=191) |
72
|
|
|
*/ |
73
|
|
|
protected $cvr; |
74
|
|
|
|
75
|
|
|
/** |
76
|
|
|
* @var string|null |
77
|
|
|
* |
78
|
|
|
* @ORM\Column(nullable=true, type="string", length=191) |
79
|
|
|
*/ |
80
|
|
|
protected $ean; |
81
|
|
|
|
82
|
|
|
/** |
83
|
|
|
* @var string|null |
84
|
|
|
* |
85
|
|
|
* @ORM\Column(nullable=true, type="string", length=191) |
86
|
|
|
*/ |
87
|
|
|
protected $email; |
88
|
|
|
|
89
|
|
|
/** |
90
|
|
|
* @var string|null |
91
|
|
|
* |
92
|
|
|
* @ORM\Column(nullable=true, type="string", length=191) |
93
|
|
|
*/ |
94
|
|
|
protected $fax; |
95
|
|
|
|
96
|
|
|
/** |
97
|
|
|
* @var string|null |
98
|
|
|
* |
99
|
|
|
* @ORM\Column(nullable=true, type="string", length=191) |
100
|
|
|
*/ |
101
|
|
|
protected $name; |
102
|
|
|
|
103
|
|
|
/** |
104
|
|
|
* @var string|null |
105
|
|
|
* |
106
|
|
|
* @ORM\Column(nullable=true, type="string", length=191) |
107
|
|
|
*/ |
108
|
|
|
protected $phone; |
109
|
|
|
|
110
|
|
|
/** |
111
|
|
|
* @var string|null |
112
|
|
|
* |
113
|
|
|
* @ORM\Column(nullable=true, type="string", length=191) |
114
|
|
|
*/ |
115
|
|
|
protected $state; |
116
|
|
|
|
117
|
|
|
/** |
118
|
|
|
* @var string|null |
119
|
|
|
* |
120
|
|
|
* @ORM\Column(nullable=true, type="string", length=191) |
121
|
|
|
*/ |
122
|
|
|
protected $zipCode; |
123
|
|
|
|
124
|
|
|
/** |
125
|
|
|
* @return int |
126
|
|
|
*/ |
127
|
|
|
public function getId(): int |
128
|
|
|
{ |
129
|
|
|
return (int) $this->id; |
130
|
|
|
} |
131
|
|
|
|
132
|
|
|
/** |
133
|
|
|
* @param int $id |
134
|
|
|
* |
135
|
|
|
* @return DeliveryInterface |
136
|
|
|
*/ |
137
|
|
|
public function setId($id) |
138
|
|
|
{ |
139
|
|
|
$this->id = $id; |
140
|
|
|
|
141
|
|
|
return $this; |
142
|
|
|
} |
143
|
|
|
|
144
|
|
|
/** |
145
|
|
|
* @return null|string |
146
|
|
|
*/ |
147
|
|
|
public function getAddress() |
148
|
|
|
{ |
149
|
|
|
return $this->address; |
150
|
|
|
} |
151
|
|
|
|
152
|
|
|
/** |
153
|
|
|
* @param null|string $address |
154
|
|
|
* |
155
|
|
|
* @return DeliveryInterface |
156
|
|
|
*/ |
157
|
|
|
public function setAddress($address) |
158
|
|
|
{ |
159
|
|
|
$this->address = $address; |
160
|
|
|
|
161
|
|
|
return $this; |
162
|
|
|
} |
163
|
|
|
|
164
|
|
|
/** |
165
|
|
|
* @return null|string |
166
|
|
|
*/ |
167
|
|
|
public function getAddress2() |
168
|
|
|
{ |
169
|
|
|
return $this->address2; |
170
|
|
|
} |
171
|
|
|
|
172
|
|
|
/** |
173
|
|
|
* @param null|string $address2 |
174
|
|
|
* |
175
|
|
|
* @return DeliveryInterface |
176
|
|
|
*/ |
177
|
|
|
public function setAddress2($address2) |
178
|
|
|
{ |
179
|
|
|
$this->address2 = $address2; |
180
|
|
|
|
181
|
|
|
return $this; |
182
|
|
|
} |
183
|
|
|
|
184
|
|
|
/** |
185
|
|
|
* @return null|string |
186
|
|
|
*/ |
187
|
|
|
public function getAttention() |
188
|
|
|
{ |
189
|
|
|
return $this->attention; |
190
|
|
|
} |
191
|
|
|
|
192
|
|
|
/** |
193
|
|
|
* @param null|string $attention |
194
|
|
|
* |
195
|
|
|
* @return DeliveryInterface |
196
|
|
|
*/ |
197
|
|
|
public function setAttention($attention) |
198
|
|
|
{ |
199
|
|
|
$this->attention = $attention; |
200
|
|
|
|
201
|
|
|
return $this; |
202
|
|
|
} |
203
|
|
|
|
204
|
|
|
/** |
205
|
|
|
* @return null|string |
206
|
|
|
*/ |
207
|
|
|
public function getCity() |
208
|
|
|
{ |
209
|
|
|
return $this->city; |
210
|
|
|
} |
211
|
|
|
|
212
|
|
|
/** |
213
|
|
|
* @param null|string $city |
214
|
|
|
* |
215
|
|
|
* @return DeliveryInterface |
216
|
|
|
*/ |
217
|
|
|
public function setCity($city) |
218
|
|
|
{ |
219
|
|
|
$this->city = $city; |
220
|
|
|
|
221
|
|
|
return $this; |
222
|
|
|
} |
223
|
|
|
|
224
|
|
|
/** |
225
|
|
|
* @return null|string |
226
|
|
|
*/ |
227
|
|
|
public function getCountry() |
228
|
|
|
{ |
229
|
|
|
return $this->country; |
230
|
|
|
} |
231
|
|
|
|
232
|
|
|
/** |
233
|
|
|
* @param null|string $country |
234
|
|
|
* |
235
|
|
|
* @return DeliveryInterface |
236
|
|
|
*/ |
237
|
|
|
public function setCountry($country) |
238
|
|
|
{ |
239
|
|
|
$this->country = $country; |
240
|
|
|
|
241
|
|
|
return $this; |
242
|
|
|
} |
243
|
|
|
|
244
|
|
|
/** |
245
|
|
|
* @return int|null |
246
|
|
|
*/ |
247
|
|
|
public function getCountryId() |
248
|
|
|
{ |
249
|
|
|
return $this->countryId; |
250
|
|
|
} |
251
|
|
|
|
252
|
|
|
/** |
253
|
|
|
* @param int|null $countryId |
254
|
|
|
* |
255
|
|
|
* @return DeliveryInterface |
256
|
|
|
*/ |
257
|
|
|
public function setCountryId($countryId) |
258
|
|
|
{ |
259
|
|
|
$this->countryId = $countryId; |
260
|
|
|
|
261
|
|
|
return $this; |
262
|
|
|
} |
263
|
|
|
|
264
|
|
|
/** |
265
|
|
|
* @return null|string |
266
|
|
|
*/ |
267
|
|
|
public function getCvr() |
268
|
|
|
{ |
269
|
|
|
return $this->cvr; |
270
|
|
|
} |
271
|
|
|
|
272
|
|
|
/** |
273
|
|
|
* @param null|string $cvr |
274
|
|
|
* |
275
|
|
|
* @return DeliveryInterface |
276
|
|
|
*/ |
277
|
|
|
public function setCvr($cvr) |
278
|
|
|
{ |
279
|
|
|
$this->cvr = $cvr; |
280
|
|
|
|
281
|
|
|
return $this; |
282
|
|
|
} |
283
|
|
|
|
284
|
|
|
/** |
285
|
|
|
* @return null|string |
286
|
|
|
*/ |
287
|
|
|
public function getEan() |
288
|
|
|
{ |
289
|
|
|
return $this->ean; |
290
|
|
|
} |
291
|
|
|
|
292
|
|
|
/** |
293
|
|
|
* @param null|string $ean |
294
|
|
|
* |
295
|
|
|
* @return DeliveryInterface |
296
|
|
|
*/ |
297
|
|
|
public function setEan($ean) |
298
|
|
|
{ |
299
|
|
|
$this->ean = $ean; |
300
|
|
|
|
301
|
|
|
return $this; |
302
|
|
|
} |
303
|
|
|
|
304
|
|
|
/** |
305
|
|
|
* @return null|string |
306
|
|
|
*/ |
307
|
|
|
public function getEmail() |
308
|
|
|
{ |
309
|
|
|
return $this->email; |
310
|
|
|
} |
311
|
|
|
|
312
|
|
|
/** |
313
|
|
|
* @param null|string $email |
314
|
|
|
* |
315
|
|
|
* @return DeliveryInterface |
316
|
|
|
*/ |
317
|
|
|
public function setEmail($email) |
318
|
|
|
{ |
319
|
|
|
$this->email = $email; |
320
|
|
|
|
321
|
|
|
return $this; |
322
|
|
|
} |
323
|
|
|
|
324
|
|
|
/** |
325
|
|
|
* @return null|string |
326
|
|
|
*/ |
327
|
|
|
public function getFax() |
328
|
|
|
{ |
329
|
|
|
return $this->fax; |
330
|
|
|
} |
331
|
|
|
|
332
|
|
|
/** |
333
|
|
|
* @param null|string $fax |
334
|
|
|
* |
335
|
|
|
* @return DeliveryInterface |
336
|
|
|
*/ |
337
|
|
|
public function setFax($fax) |
338
|
|
|
{ |
339
|
|
|
$this->fax = $fax; |
340
|
|
|
|
341
|
|
|
return $this; |
342
|
|
|
} |
343
|
|
|
|
344
|
|
|
/** |
345
|
|
|
* @return null|string |
346
|
|
|
*/ |
347
|
|
|
public function getName() |
348
|
|
|
{ |
349
|
|
|
return $this->name; |
350
|
|
|
} |
351
|
|
|
|
352
|
|
|
/** |
353
|
|
|
* @param null|string $name |
354
|
|
|
* |
355
|
|
|
* @return DeliveryInterface |
356
|
|
|
*/ |
357
|
|
|
public function setName($name) |
358
|
|
|
{ |
359
|
|
|
$this->name = $name; |
360
|
|
|
|
361
|
|
|
return $this; |
362
|
|
|
} |
363
|
|
|
|
364
|
|
|
/** |
365
|
|
|
* @return null|string |
366
|
|
|
*/ |
367
|
|
|
public function getPhone() |
368
|
|
|
{ |
369
|
|
|
return $this->phone; |
370
|
|
|
} |
371
|
|
|
|
372
|
|
|
/** |
373
|
|
|
* @param null|string $phone |
374
|
|
|
* |
375
|
|
|
* @return DeliveryInterface |
376
|
|
|
*/ |
377
|
|
|
public function setPhone($phone) |
378
|
|
|
{ |
379
|
|
|
$this->phone = $phone; |
380
|
|
|
|
381
|
|
|
return $this; |
382
|
|
|
} |
383
|
|
|
|
384
|
|
|
/** |
385
|
|
|
* @return null|string |
386
|
|
|
*/ |
387
|
|
|
public function getState() |
388
|
|
|
{ |
389
|
|
|
return $this->state; |
390
|
|
|
} |
391
|
|
|
|
392
|
|
|
/** |
393
|
|
|
* @param null|string $state |
394
|
|
|
* |
395
|
|
|
* @return DeliveryInterface |
396
|
|
|
*/ |
397
|
|
|
public function setState($state) |
398
|
|
|
{ |
399
|
|
|
$this->state = $state; |
400
|
|
|
|
401
|
|
|
return $this; |
402
|
|
|
} |
403
|
|
|
|
404
|
|
|
/** |
405
|
|
|
* @return null|string |
406
|
|
|
*/ |
407
|
|
|
public function getZipCode() |
408
|
|
|
{ |
409
|
|
|
return $this->zipCode; |
410
|
|
|
} |
411
|
|
|
|
412
|
|
|
/** |
413
|
|
|
* @param null|string $zipCode |
414
|
|
|
* |
415
|
|
|
* @return DeliveryInterface |
416
|
|
|
*/ |
417
|
|
|
public function setZipCode($zipCode) |
418
|
|
|
{ |
419
|
|
|
$this->zipCode = $zipCode; |
420
|
|
|
|
421
|
|
|
return $this; |
422
|
|
|
} |
423
|
|
|
} |
424
|
|
|
|
The issue could also be caused by a filter entry in the build configuration. If the path has been excluded in your configuration, e.g.
excluded_paths: ["lib/*"]
, you can move it to the dependency path list as follows:For further information see https://scrutinizer-ci.com/docs/tools/php/php-scrutinizer/#list-dependency-paths