ShippingAddress   A
last analyzed

Complexity

Total Complexity 29

Size/Duplication

Total Lines 415
Duplicated Lines 0 %

Importance

Changes 0
Metric Value
dl 0
loc 415
rs 10
c 0
b 0
f 0
wmc 29

29 Methods

Rating   Name   Duplication   Size   Complexity  
A getProvince() 0 3 1
A setProvince() 0 5 1
B __construct() 0 30 1
A getAccountNumber() 0 3 1
A setAccountNumber() 0 5 1
A setCountry() 0 5 1
A setNameOther() 0 5 1
A getLocalAddressValidation() 0 3 1
A setCompanyName() 0 5 1
A setCity() 0 5 1
A setAdditionalInstruction() 0 5 1
A getAdditionalInstruction() 0 3 1
A getHousenumber() 0 3 1
A getCustomerName() 0 3 1
A setStreet() 0 5 1
A getZipcode() 0 3 1
A setCustomerName() 0 5 1
A setHousenumber() 0 5 1
A getNameOther() 0 3 1
A getCity() 0 3 1
A getCountry() 0 3 1
A getAdditionalAddressLine() 0 3 1
A getAddition() 0 3 1
A setAdditionalAddressLine() 0 5 1
A setLocalAddressValidation() 0 5 1
A getStreet() 0 3 1
A setZipcode() 0 5 1
A setAddition() 0 5 1
A getCompanyName() 0 3 1
1
<?php
2
3
/*
4
 * This file is part of PHP CS Fixer.
5
 *
6
 * (c) Fabien Potencier <[email protected]>
7
 *     Dariusz Rumiński <[email protected]>
8
 *
9
 * This source file is subject to the MIT license that is bundled
10
 * with this source code in the file LICENSE.
11
 */
12
13
namespace Etrias\PaazlConnector\SoapTypes;
14
15
class ShippingAddress
16
{
17
    /**
18
     * @var string
19
     */
20
    protected $accountNumber = null;
21
22
    /**
23
     * @var customerName
0 ignored issues
show
Bug introduced by
The type Etrias\PaazlConnector\SoapTypes\customerName 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...
24
     */
25
    protected $customerName = null;
26
27
    /**
28
     * @var companyName
0 ignored issues
show
Bug introduced by
The type Etrias\PaazlConnector\SoapTypes\companyName 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...
29
     */
30
    protected $companyName = null;
31
32
    /**
33
     * @var nameOther
0 ignored issues
show
Bug introduced by
The type Etrias\PaazlConnector\SoapTypes\nameOther 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...
34
     */
35
    protected $nameOther = null;
36
37
    /**
38
     * @var string
39
     */
40
    protected $street = null;
41
42
    /**
43
     * @var string
44
     */
45
    protected $housenumber = null;
46
47
    /**
48
     * @var string
49
     */
50
    protected $addition = null;
51
52
    /**
53
     * @var string
54
     */
55
    protected $additionalAddressLine = null;
56
57
    /**
58
     * @var string
59
     */
60
    protected $zipcode = null;
61
62
    /**
63
     * @var string
64
     */
65
    protected $city = null;
66
67
    /**
68
     * @var string
69
     */
70
    protected $province = null;
71
72
    /**
73
     * @var string
74
     */
75
    protected $country = null;
76
77
    /**
78
     * @var bool
79
     */
80
    protected $localAddressValidation = null;
81
82
    /**
83
     * @var string
84
     */
85
    protected $additionalInstruction = null;
86
87
    /**
88
     * Constructor.
89
     *
90
     * @var string
91
     * @var customerName $customerName
92
     * @var companyName  $companyName
93
     * @var nameOther    $nameOther
94
     * @var string       $street
95
     * @var string       $housenumber
96
     * @var string       $addition
97
     * @var string       $additionalAddressLine
98
     * @var string       $zipcode
99
     * @var string       $city
100
     * @var string       $province
101
     * @var string       $country
102
     * @var bool         $localAddressValidation
103
     * @var string       $additionalInstruction
104
     *
105
     * @param mixed      $accountNumber
106
     * @param mixed      $customerName
107
     * @param mixed      $companyName
108
     * @param mixed      $nameOther
109
     * @param mixed      $street
110
     * @param mixed      $housenumber
111
     * @param mixed      $addition
112
     * @param mixed      $additionalAddressLine
113
     * @param mixed      $zipcode
114
     * @param mixed      $city
115
     * @param null|mixed $province
116
     * @param null|mixed $country
117
     * @param null|mixed $localAddressValidation
118
     * @param null|mixed $additionalInstruction
119
     */
120
    public function __construct(
121
        $accountNumber,
122
        $customerName,
123
        $companyName,
124
        $nameOther,
125
        $street,
126
        $housenumber,
127
        $addition,
128
        $additionalAddressLine,
129
        $zipcode,
130
        $city,
131
        $province = null,
132
        $country = null,
133
        $localAddressValidation = null,
134
        $additionalInstruction = null
135
    ) {
136
        $this->accountNumber = $accountNumber;
0 ignored issues
show
Documentation Bug introduced by
$accountNumber is of type mixed, but the property $accountNumber was declared to be of type string. Are you sure that you always receive this specific sub-class here, or does it make sense to add an instanceof check?

Our type inference engine has found a suspicous assignment of a value to a property. This check raises an issue when a value that can be of a given class or a super-class is assigned to a property that is type hinted more strictly.

Either this assignment is in error or an instanceof check should be added for that assignment.

class Alien {}

class Dalek extends Alien {}

class Plot
{
    /** @var  Dalek */
    public $villain;
}

$alien = new Alien();
$plot = new Plot();
if ($alien instanceof Dalek) {
    $plot->villain = $alien;
}
Loading history...
137
        $this->customerName = $customerName;
138
        $this->companyName = $companyName;
139
        $this->nameOther = $nameOther;
140
        $this->street = $street;
141
        $this->housenumber = $housenumber;
142
        $this->addition = $addition;
143
        $this->additionalAddressLine = $additionalAddressLine;
144
        $this->zipcode = $zipcode;
145
        $this->city = $city;
146
        $this->province = $province;
147
        $this->country = $country;
148
        $this->localAddressValidation = $localAddressValidation;
149
        $this->additionalInstruction = $additionalInstruction;
150
    }
151
152
    /**
153
     * @return string
154
     */
155
    public function getAccountNumber()
156
    {
157
        return $this->accountNumber;
158
    }
159
160
    /**
161
     * @param string $accountNumber
162
     *
163
     * @return $this
164
     */
165
    public function setAccountNumber($accountNumber)
166
    {
167
        $this->accountNumber = $accountNumber;
168
169
        return $this;
170
    }
171
172
    /**
173
     * @return customerName
174
     */
175
    public function getCustomerName()
176
    {
177
        return $this->customerName;
178
    }
179
180
    /**
181
     * @param customerName $customerName
182
     *
183
     * @return $this
184
     */
185
    public function setCustomerName($customerName)
186
    {
187
        $this->customerName = $customerName;
188
189
        return $this;
190
    }
191
192
    /**
193
     * @return companyName
194
     */
195
    public function getCompanyName()
196
    {
197
        return $this->companyName;
198
    }
199
200
    /**
201
     * @param companyName $companyName
202
     *
203
     * @return $this
204
     */
205
    public function setCompanyName($companyName)
206
    {
207
        $this->companyName = $companyName;
208
209
        return $this;
210
    }
211
212
    /**
213
     * @return nameOther
214
     */
215
    public function getNameOther()
216
    {
217
        return $this->nameOther;
218
    }
219
220
    /**
221
     * @param nameOther $nameOther
222
     *
223
     * @return $this
224
     */
225
    public function setNameOther($nameOther)
226
    {
227
        $this->nameOther = $nameOther;
228
229
        return $this;
230
    }
231
232
    /**
233
     * @return string
234
     */
235
    public function getStreet()
236
    {
237
        return $this->street;
238
    }
239
240
    /**
241
     * @param string $street
242
     *
243
     * @return $this
244
     */
245
    public function setStreet($street)
246
    {
247
        $this->street = $street;
248
249
        return $this;
250
    }
251
252
    /**
253
     * @return string
254
     */
255
    public function getHousenumber()
256
    {
257
        return $this->housenumber;
258
    }
259
260
    /**
261
     * @param string $housenumber
262
     *
263
     * @return $this
264
     */
265
    public function setHousenumber($housenumber)
266
    {
267
        $this->housenumber = $housenumber;
268
269
        return $this;
270
    }
271
272
    /**
273
     * @return string
274
     */
275
    public function getAddition()
276
    {
277
        return $this->addition;
278
    }
279
280
    /**
281
     * @param string $addition
282
     *
283
     * @return $this
284
     */
285
    public function setAddition($addition)
286
    {
287
        $this->addition = $addition;
288
289
        return $this;
290
    }
291
292
    /**
293
     * @return string
294
     */
295
    public function getAdditionalAddressLine()
296
    {
297
        return $this->additionalAddressLine;
298
    }
299
300
    /**
301
     * @param string $additionalAddressLine
302
     *
303
     * @return $this
304
     */
305
    public function setAdditionalAddressLine($additionalAddressLine)
306
    {
307
        $this->additionalAddressLine = $additionalAddressLine;
308
309
        return $this;
310
    }
311
312
    /**
313
     * @return string
314
     */
315
    public function getZipcode()
316
    {
317
        return $this->zipcode;
318
    }
319
320
    /**
321
     * @param string $zipcode
322
     *
323
     * @return $this
324
     */
325
    public function setZipcode($zipcode)
326
    {
327
        $this->zipcode = $zipcode;
328
329
        return $this;
330
    }
331
332
    /**
333
     * @return string
334
     */
335
    public function getCity()
336
    {
337
        return $this->city;
338
    }
339
340
    /**
341
     * @param string $city
342
     *
343
     * @return $this
344
     */
345
    public function setCity($city)
346
    {
347
        $this->city = $city;
348
349
        return $this;
350
    }
351
352
    /**
353
     * @return string
354
     */
355
    public function getProvince()
356
    {
357
        return $this->province;
358
    }
359
360
    /**
361
     * @param string $province
362
     *
363
     * @return $this
364
     */
365
    public function setProvince($province)
366
    {
367
        $this->province = $province;
368
369
        return $this;
370
    }
371
372
    /**
373
     * @return string
374
     */
375
    public function getCountry()
376
    {
377
        return $this->country;
378
    }
379
380
    /**
381
     * @param string $country
382
     *
383
     * @return $this
384
     */
385
    public function setCountry($country)
386
    {
387
        $this->country = $country;
388
389
        return $this;
390
    }
391
392
    /**
393
     * @return bool
394
     */
395
    public function getLocalAddressValidation()
396
    {
397
        return $this->localAddressValidation;
398
    }
399
400
    /**
401
     * @param bool $localAddressValidation
402
     *
403
     * @return $this
404
     */
405
    public function setLocalAddressValidation($localAddressValidation)
406
    {
407
        $this->localAddressValidation = $localAddressValidation;
408
409
        return $this;
410
    }
411
412
    /**
413
     * @return string
414
     */
415
    public function getAdditionalInstruction()
416
    {
417
        return $this->additionalInstruction;
418
    }
419
420
    /**
421
     * @param string $additionalInstruction
422
     *
423
     * @return $this
424
     */
425
    public function setAdditionalInstruction($additionalInstruction)
426
    {
427
        $this->additionalInstruction = $additionalInstruction;
428
429
        return $this;
430
    }
431
}
432