Completed
Push — master ( 2cf029...6368d5 )
by Joachim
12:58
created

Delivery::populateFromApiResponse()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 22
Code Lines 17

Duplication

Lines 22
Ratio 100 %

Importance

Changes 0
Metric Value
cc 1
eloc 17
nc 1
nop 1
dl 22
loc 22
rs 9.2
c 0
b 0
f 0

2 Methods

Rating   Name   Duplication   Size   Complexity  
A Delivery::setId() 0 4 1
A Delivery::getAddress() 0 3 1
1
<?php
2
3
namespace Loevgaard\DandomainFoundation\Entity;
4
5
use Doctrine\ORM\Mapping as ORM;
6
use Loevgaard\DandomainFoundation;
7
use Loevgaard\DandomainFoundation\Entity\Generated\DeliveryInterface;
0 ignored issues
show
Bug introduced by
The type Loevgaard\DandomainFound...rated\DeliveryInterface was not found. Maybe you did not declare it correctly or list all dependencies?

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:

filter:
    dependency_paths: ["lib/*"]

For further information see https://scrutinizer-ci.com/docs/tools/php/php-scrutinizer/#list-dependency-paths

Loading history...
8
use Loevgaard\DandomainFoundation\Entity\Generated\DeliveryTrait;
0 ignored issues
show
Bug introduced by
The type Loevgaard\DandomainFound...Generated\DeliveryTrait was not found. Maybe you did not declare it correctly or list all dependencies?

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:

filter:
    dependency_paths: ["lib/*"]

For further information see https://scrutinizer-ci.com/docs/tools/php/php-scrutinizer/#list-dependency-paths

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