ChangeShippingAddress   A
last analyzed

Complexity

Total Complexity 29

Size/Duplication

Total Lines 401
Duplicated Lines 0 %

Importance

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

29 Methods

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