Product   B
last analyzed

Complexity

Total Complexity 39

Size/Duplication

Total Lines 560
Duplicated Lines 0 %

Importance

Changes 0
Metric Value
dl 0
loc 560
rs 8.2857
c 0
b 0
f 0
wmc 39

39 Methods

Rating   Name   Duplication   Size   Complexity  
A setHsTariffCode() 0 5 1
A getUnitPriceCurrency() 0 3 1
A setUnitPriceCurrency() 0 5 1
A getPromotionAbsolute() 0 3 1
A getUnitPrice() 0 3 1
A setHeight() 0 5 1
A setMatrix() 0 5 1
A setDescription() 0 5 1
A setProcessingDays() 0 5 1
A getWidth() 0 3 1
A getWeight() 0 3 1
A getQuantity() 0 3 1
A getHsTariffCode() 0 3 1
A setWeight() 0 5 1
A setPromotion() 0 5 1
A setPackagesPerUnit() 0 5 1
A getDescription() 0 3 1
A getPromotion() 0 3 1
B __construct() 0 40 1
A setPromotionAbsolute() 0 5 1
A setQuantity() 0 5 1
A setAvailableStores() 0 5 1
A getCountryOfManufacture() 0 3 1
A getMatrix() 0 3 1
A getDirection() 0 3 1
A getCode() 0 3 1
A getProcessingDays() 0 3 1
A getPackagesPerUnit() 0 3 1
A setDirection() 0 5 1
A setCountryOfManufacture() 0 5 1
A setUnitPrice() 0 5 1
A setWidth() 0 5 1
A setLength() 0 5 1
A getAvailableStores() 0 3 1
A getLength() 0 3 1
A setCode() 0 5 1
A setVolume() 0 5 1
A getHeight() 0 3 1
A getVolume() 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 Product
16
{
17
    /**
18
     * @var positiveInteger
0 ignored issues
show
Bug introduced by
The type Etrias\PaazlConnector\SoapTypes\positiveInteger 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...
19
     */
20
    protected $quantity = null;
21
22
    /**
23
     * @var positiveInteger
24
     */
25
    protected $packagesPerUnit = null;
26
27
    /**
28
     * @var matrix
0 ignored issues
show
Bug introduced by
The type Etrias\PaazlConnector\SoapTypes\matrix 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 $matrix = null;
31
32
    /**
33
     * @var nonNegativeDecimal
0 ignored issues
show
Bug introduced by
The type Etrias\PaazlConnector\SoapTypes\nonNegativeDecimal 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 $weight = null;
36
37
    /**
38
     * @var nonNegativeInteger
39
     */
40
    protected $width = null;
41
42
    /**
43
     * @var nonNegativeInteger
44
     */
45
    protected $height = null;
46
47
    /**
48
     * @var nonNegativeInteger
49
     */
50
    protected $length = null;
51
52
    /**
53
     * @var nonNegativeDecimal
54
     */
55
    protected $volume = null;
56
57
    /**
58
     * @var string
59
     */
60
    protected $code = null;
61
62
    /**
63
     * @var string
64
     */
65
    protected $description = null;
66
67
    /**
68
     * @var string
69
     */
70
    protected $countryOfManufacture = null;
71
72
    /**
73
     * @var nonNegativeDecimal
74
     */
75
    protected $unitPrice = null;
76
77
    /**
78
     * @var currencyCode
0 ignored issues
show
Bug introduced by
The type Etrias\PaazlConnector\SoapTypes\currencyCode 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...
79
     */
80
    protected $unitPriceCurrency = null;
81
82
    /**
83
     * @var string
84
     */
85
    protected $hsTariffCode = null;
86
87
    /**
88
     * @var directionType
89
     */
90
    protected $direction = null;
91
92
    /**
93
     * @var nonNegativeInteger
94
     */
95
    protected $processingDays = null;
96
97
    /**
98
     * @var bool
99
     */
100
    protected $promotionAbsolute = null;
101
102
    /**
103
     * @var float
104
     */
105
    protected $promotion = null;
106
107
    /**
108
     * @var availableStores
109
     */
110
    protected $availableStores = null;
111
112
    /**
113
     * Constructor.
114
     *
115
     * @var positiveInteger|null
116
     * @var positiveInteger|null    $packagesPerUnit
117
     * @var matrix|null             $matrix
118
     * @var nonNegativeDecimal|null $weight
119
     * @var nonNegativeInteger|null $width
120
     * @var nonNegativeInteger|null $height
121
     * @var nonNegativeInteger|null $length
122
     * @var nonNegativeDecimal|null $volume
123
     * @var string|null             $code
124
     * @var string|null             $description
125
     * @var string|null             $countryOfManufacture
126
     * @var nonNegativeDecimal|null $unitPrice
127
     * @var currencyCode|null       $unitPriceCurrency
128
     * @var string|null             $hsTariffCode
129
     * @var directionType|null      $direction
130
     * @var nonNegativeInteger|null $processingDays
131
     * @var bool|null               $promotionAbsolute
132
     * @var float|null              $promotion
133
     * @var availableStores|null    $availableStores
134
     *
135
     * @param null|mixed $quantity
136
     * @param null|mixed $packagesPerUnit
137
     * @param null|mixed $matrix
138
     * @param null|mixed $weight
139
     * @param null|mixed $width
140
     * @param null|mixed $height
141
     * @param null|mixed $length
142
     * @param null|mixed $volume
143
     * @param null|mixed $code
144
     * @param null|mixed $description
145
     * @param null|mixed $countryOfManufacture
146
     * @param null|mixed $unitPrice
147
     * @param null|mixed $unitPriceCurrency
148
     * @param null|mixed $hsTariffCode
149
     * @param null|mixed $direction
150
     * @param null|mixed $processingDays
151
     * @param null|mixed $promotionAbsolute
152
     * @param null|mixed $promotion
153
     * @param null|mixed $availableStores
154
     */
155
    public function __construct(
156
        $quantity = null,
157
        $packagesPerUnit = null,
158
        $matrix = null,
159
        $weight = null,
160
        $width = null,
161
        $height = null,
162
        $length = null,
163
        $volume = null,
164
        $code = null,
165
        $description = null,
166
        $countryOfManufacture = null,
167
        $unitPrice = null,
168
        $unitPriceCurrency = null,
169
        $hsTariffCode = null,
170
        $direction = null,
171
        $processingDays = null,
172
        $promotionAbsolute = null,
173
        $promotion = null,
174
        $availableStores = null
175
    ) {
176
        $this->quantity = $quantity;
177
        $this->packagesPerUnit = $packagesPerUnit;
178
        $this->matrix = $matrix;
179
        $this->weight = $weight;
180
        $this->width = $width;
181
        $this->height = $height;
182
        $this->length = $length;
183
        $this->volume = $volume;
184
        $this->code = $code;
185
        $this->description = $description;
186
        $this->countryOfManufacture = $countryOfManufacture;
187
        $this->unitPrice = $unitPrice;
188
        $this->unitPriceCurrency = $unitPriceCurrency;
189
        $this->hsTariffCode = $hsTariffCode;
190
        $this->direction = $direction;
191
        $this->processingDays = $processingDays;
192
        $this->promotionAbsolute = $promotionAbsolute;
193
        $this->promotion = $promotion;
194
        $this->availableStores = $availableStores;
195
    }
196
197
    /**
198
     * @return positiveInteger
199
     */
200
    public function getQuantity()
201
    {
202
        return $this->quantity;
203
    }
204
205
    /**
206
     * @param positiveInteger $quantity
207
     *
208
     * @return $this
209
     */
210
    public function setQuantity($quantity)
211
    {
212
        $this->quantity = $quantity;
213
214
        return $this;
215
    }
216
217
    /**
218
     * @return positiveInteger
219
     */
220
    public function getPackagesPerUnit()
221
    {
222
        return $this->packagesPerUnit;
223
    }
224
225
    /**
226
     * @param positiveInteger $packagesPerUnit
227
     *
228
     * @return $this
229
     */
230
    public function setPackagesPerUnit($packagesPerUnit)
231
    {
232
        $this->packagesPerUnit = $packagesPerUnit;
233
234
        return $this;
235
    }
236
237
    /**
238
     * @return matrix
239
     */
240
    public function getMatrix()
241
    {
242
        return $this->matrix;
243
    }
244
245
    /**
246
     * @param matrix $matrix
247
     *
248
     * @return $this
249
     */
250
    public function setMatrix($matrix)
251
    {
252
        $this->matrix = $matrix;
253
254
        return $this;
255
    }
256
257
    /**
258
     * @return nonNegativeDecimal
259
     */
260
    public function getWeight()
261
    {
262
        return $this->weight;
263
    }
264
265
    /**
266
     * @param nonNegativeDecimal $weight
267
     *
268
     * @return $this
269
     */
270
    public function setWeight($weight)
271
    {
272
        $this->weight = $weight;
273
274
        return $this;
275
    }
276
277
    /**
278
     * @return nonNegativeInteger
279
     */
280
    public function getWidth()
281
    {
282
        return $this->width;
283
    }
284
285
    /**
286
     * @param nonNegativeInteger $width
287
     *
288
     * @return $this
289
     */
290
    public function setWidth($width)
291
    {
292
        $this->width = $width;
293
294
        return $this;
295
    }
296
297
    /**
298
     * @return nonNegativeInteger
299
     */
300
    public function getHeight()
301
    {
302
        return $this->height;
303
    }
304
305
    /**
306
     * @param nonNegativeInteger $height
307
     *
308
     * @return $this
309
     */
310
    public function setHeight($height)
311
    {
312
        $this->height = $height;
313
314
        return $this;
315
    }
316
317
    /**
318
     * @return nonNegativeInteger
319
     */
320
    public function getLength()
321
    {
322
        return $this->length;
323
    }
324
325
    /**
326
     * @param nonNegativeInteger $length
327
     *
328
     * @return $this
329
     */
330
    public function setLength($length)
331
    {
332
        $this->length = $length;
333
334
        return $this;
335
    }
336
337
    /**
338
     * @return nonNegativeDecimal
339
     */
340
    public function getVolume()
341
    {
342
        return $this->volume;
343
    }
344
345
    /**
346
     * @param nonNegativeDecimal $volume
347
     *
348
     * @return $this
349
     */
350
    public function setVolume($volume)
351
    {
352
        $this->volume = $volume;
353
354
        return $this;
355
    }
356
357
    /**
358
     * @return string
359
     */
360
    public function getCode()
361
    {
362
        return $this->code;
363
    }
364
365
    /**
366
     * @param string $code
367
     *
368
     * @return $this
369
     */
370
    public function setCode($code)
371
    {
372
        $this->code = $code;
373
374
        return $this;
375
    }
376
377
    /**
378
     * @return string
379
     */
380
    public function getDescription()
381
    {
382
        return $this->description;
383
    }
384
385
    /**
386
     * @param string $description
387
     *
388
     * @return $this
389
     */
390
    public function setDescription($description)
391
    {
392
        $this->description = $description;
393
394
        return $this;
395
    }
396
397
    /**
398
     * @return string
399
     */
400
    public function getCountryOfManufacture()
401
    {
402
        return $this->countryOfManufacture;
403
    }
404
405
    /**
406
     * @param string $countryOfManufacture
407
     *
408
     * @return $this
409
     */
410
    public function setCountryOfManufacture($countryOfManufacture)
411
    {
412
        $this->countryOfManufacture = $countryOfManufacture;
413
414
        return $this;
415
    }
416
417
    /**
418
     * @return nonNegativeDecimal
419
     */
420
    public function getUnitPrice()
421
    {
422
        return $this->unitPrice;
423
    }
424
425
    /**
426
     * @param nonNegativeDecimal $unitPrice
427
     *
428
     * @return $this
429
     */
430
    public function setUnitPrice($unitPrice)
431
    {
432
        $this->unitPrice = $unitPrice;
433
434
        return $this;
435
    }
436
437
    /**
438
     * @return currencyCode
439
     */
440
    public function getUnitPriceCurrency()
441
    {
442
        return $this->unitPriceCurrency;
443
    }
444
445
    /**
446
     * @param currencyCode $unitPriceCurrency
447
     *
448
     * @return $this
449
     */
450
    public function setUnitPriceCurrency($unitPriceCurrency)
451
    {
452
        $this->unitPriceCurrency = $unitPriceCurrency;
453
454
        return $this;
455
    }
456
457
    /**
458
     * @return string
459
     */
460
    public function getHsTariffCode()
461
    {
462
        return $this->hsTariffCode;
463
    }
464
465
    /**
466
     * @param string $hsTariffCode
467
     *
468
     * @return $this
469
     */
470
    public function setHsTariffCode($hsTariffCode)
471
    {
472
        $this->hsTariffCode = $hsTariffCode;
473
474
        return $this;
475
    }
476
477
    /**
478
     * @return directionType
479
     */
480
    public function getDirection()
481
    {
482
        return $this->direction;
483
    }
484
485
    /**
486
     * @param directionType $direction
487
     *
488
     * @return $this
489
     */
490
    public function setDirection($direction)
491
    {
492
        $this->direction = $direction;
493
494
        return $this;
495
    }
496
497
    /**
498
     * @return nonNegativeInteger
499
     */
500
    public function getProcessingDays()
501
    {
502
        return $this->processingDays;
503
    }
504
505
    /**
506
     * @param nonNegativeInteger $processingDays
507
     *
508
     * @return $this
509
     */
510
    public function setProcessingDays($processingDays)
511
    {
512
        $this->processingDays = $processingDays;
513
514
        return $this;
515
    }
516
517
    /**
518
     * @return bool
519
     */
520
    public function getPromotionAbsolute()
521
    {
522
        return $this->promotionAbsolute;
523
    }
524
525
    /**
526
     * @param bool $promotionAbsolute
527
     *
528
     * @return $this
529
     */
530
    public function setPromotionAbsolute($promotionAbsolute)
531
    {
532
        $this->promotionAbsolute = $promotionAbsolute;
533
534
        return $this;
535
    }
536
537
    /**
538
     * @return float
539
     */
540
    public function getPromotion()
541
    {
542
        return $this->promotion;
543
    }
544
545
    /**
546
     * @param float $promotion
547
     *
548
     * @return $this
549
     */
550
    public function setPromotion($promotion)
551
    {
552
        $this->promotion = $promotion;
553
554
        return $this;
555
    }
556
557
    /**
558
     * @return availableStores
559
     */
560
    public function getAvailableStores()
561
    {
562
        return $this->availableStores;
563
    }
564
565
    /**
566
     * @param availableStores $availableStores
567
     *
568
     * @return $this
569
     */
570
    public function setAvailableStores($availableStores)
571
    {
572
        $this->availableStores = $availableStores;
573
574
        return $this;
575
    }
576
}
577