GitHub Access Token became invalid

It seems like the GitHub access token used for retrieving details about this repository from GitHub became invalid. This might prevent certain types of inspections from being run (in particular, everything related to pull requests).
Please ask an admin of your repository to re-new the access token on this website.
Completed
Push — master ( 8dd43a...df80a5 )
by Alexander
45:46 queued 20:43
created

Article::getId()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 2
CRAP Score 1

Importance

Changes 1
Bugs 0 Features 0
Metric Value
c 1
b 0
f 0
dl 0
loc 4
ccs 2
cts 2
cp 1
rs 10
cc 1
eloc 2
nc 1
nop 0
crap 1
1
<?php
2
/**
3
 * LeadCommerce\Shopware\SDK\Entity
4
 *
5
 * Copyright 2016 LeadCommerce
6
 *
7
 * @author Alexander Mahrt <[email protected]>
8
 * @copyright 2016 LeadCommerce <[email protected]>
9
 */
10
namespace LeadCommerce\Shopware\SDK\Entity;
11
12
/**
13
 * Class Article
14
 */
15
class Article extends Base
16
{
17
    /**
18
     * @var int
19
     */
20
    protected $id;
21
    /**
22
     * @var int
23
     */
24
    protected $mainDetailId;
25
    /**
26
     * @var int
27
     */
28
    protected $supplierId;
29
    /**
30
     * @var int
31
     */
32
    protected $taxId;
33
    /**
34
     * @var int
35
     */
36
    protected $priceGroupId;
37
    /**
38
     * @var int
39
     */
40
    protected $filterGroupId;
41
    /**
42
     * @var int
43
     */
44
    protected $configuratorSetId;
45
    /**
46
     * @var string
47
     */
48
    protected $name;
49
    /**
50
     * @var string
51
     */
52
    protected $description;
53
    /**
54
     * @var string
55
     */
56
    protected $descriptionLong;
57
    /**
58
     * @var string
59
     */
60
    protected $added;
61
    /**
62
     * @var bool
63
     */
64
    protected $active;
65
    /**
66
     * @var int
67
     */
68
    protected $pseudoSales;
69
    /**
70
     * @var bool
71
     */
72
    protected $highlight;
73
    /**
74
     * @var string
75
     */
76
    protected $keywords;
77
    /**
78
     * @var string
79
     */
80
    protected $metaTitle;
81
    /**
82
     * @var string
83
     */
84
    protected $changed;
85
    /**
86
     * @var bool
87
     */
88
    protected $priceGroupActive;
89
    /**
90
     * @var bool
91
     */
92
    protected $lastStock;
93
    /**
94
     * @var bool
95
     */
96
    protected $crossBundleLook;
97
    /**
98
     * @var bool
99
     */
100
    protected $notification;
101
    /**
102
     * @var string
103
     */
104
    protected $template;
105
    /**
106
     * @var int
107
     */
108
    protected $mode;
109
    /**
110
     * @var string
111
     */
112
    protected $availableFrom;
113
    /**
114
     * @var string
115
     */
116
    protected $availableTo;
117
    /**
118
     * @var ArticleAttribute
119
     */
120
    protected $attribute;
121
    /**
122
     * @var Category[]
123
     */
124
    protected $categories;
125
126
    /**
127
     * @return int
128
     */
129 4
    public function getId()
130
    {
131 4
        return $this->id;
132
    }
133
134
    /**
135
     * @param int $id
136
     *
137
     * @return Article
138
     */
139 5
    public function setId($id)
140
    {
141 5
        $this->id = $id;
142
143 5
        return $this;
144
    }
145
146
    /**
147
     * @return int
148
     */
149 2
    public function getMainDetailId()
150
    {
151 2
        return $this->mainDetailId;
152
    }
153
154
    /**
155
     * @param int $mainDetailId
156
     *
157
     * @return Article
158
     */
159 5
    public function setMainDetailId($mainDetailId)
160
    {
161 5
        $this->mainDetailId = $mainDetailId;
162
163 5
        return $this;
164
    }
165
166
    /**
167
     * @return int
168
     */
169
    public function getSupplierId()
170
    {
171
        return $this->supplierId;
172
    }
173
174
    /**
175
     * @param int $supplierId
176
     *
177
     * @return Article
178
     */
179 5
    public function setSupplierId($supplierId)
180
    {
181 5
        $this->supplierId = $supplierId;
182
183 5
        return $this;
184
    }
185
186
    /**
187
     * @return int
188
     */
189
    public function getTaxId()
190
    {
191
        return $this->taxId;
192
    }
193
194
    /**
195
     * @param int $taxId
196
     *
197
     * @return Article
198
     */
199 5
    public function setTaxId($taxId)
200
    {
201 5
        $this->taxId = $taxId;
202
203 5
        return $this;
204
    }
205
206
    /**
207
     * @return int
208
     */
209
    public function getPriceGroupId()
210
    {
211
        return $this->priceGroupId;
212
    }
213
214
    /**
215
     * @param int $priceGroupId
216
     *
217
     * @return Article
218
     */
219 5
    public function setPriceGroupId($priceGroupId)
220
    {
221 5
        $this->priceGroupId = $priceGroupId;
222
223 5
        return $this;
224
    }
225
226
    /**
227
     * @return int
228
     */
229
    public function getFilterGroupId()
230
    {
231
        return $this->filterGroupId;
232
    }
233
234
    /**
235
     * @param int $filterGroupId
236
     *
237
     * @return Article
238
     */
239 5
    public function setFilterGroupId($filterGroupId)
240
    {
241 5
        $this->filterGroupId = $filterGroupId;
242
243 5
        return $this;
244
    }
245
246
    /**
247
     * @return int
248
     */
249
    public function getConfiguratorSetId()
250
    {
251
        return $this->configuratorSetId;
252
    }
253
254
    /**
255
     * @param int $configuratorSetId
256
     *
257
     * @return Article
258
     */
259 5
    public function setConfiguratorSetId($configuratorSetId)
260
    {
261 5
        $this->configuratorSetId = $configuratorSetId;
262
263 5
        return $this;
264
    }
265
266
    /**
267
     * @return string
268
     */
269 4
    public function getName()
270
    {
271 4
        return $this->name;
272
    }
273
274
    /**
275
     * @param string $name
276
     *
277
     * @return Article
278
     */
279 5
    public function setName($name)
280
    {
281 5
        $this->name = $name;
282
283 5
        return $this;
284
    }
285
286
    /**
287
     * @return string
288
     */
289
    public function getDescription()
290
    {
291
        return $this->description;
292
    }
293
294
    /**
295
     * @param string $description
296
     *
297
     * @return Article
298
     */
299 5
    public function setDescription($description)
300
    {
301 5
        $this->description = $description;
302
303 5
        return $this;
304
    }
305
306
    /**
307
     * @return string
308
     */
309
    public function getDescriptionLong()
310
    {
311
        return $this->descriptionLong;
312
    }
313
314
    /**
315
     * @param string $descriptionLong
316
     *
317
     * @return Article
318
     */
319 5
    public function setDescriptionLong($descriptionLong)
320
    {
321 5
        $this->descriptionLong = $descriptionLong;
322
323 5
        return $this;
324
    }
325
326
    /**
327
     * @return string
328
     */
329
    public function getAdded()
330
    {
331
        return $this->added;
332
    }
333
334
    /**
335
     * @param string $added
336
     *
337
     * @return Article
338
     */
339 5
    public function setAdded($added)
340
    {
341 5
        $this->added = $added;
342
343 5
        return $this;
344
    }
345
346
    /**
347
     * @return bool
348
     */
349 2
    public function isActive()
350
    {
351 2
        return $this->active;
352
    }
353
354
    /**
355
     * @param bool $active
356
     *
357
     * @return Article
358
     */
359 5
    public function setActive($active)
360
    {
361 5
        $this->active = $active;
362
363 5
        return $this;
364
    }
365
366
    /**
367
     * @return int
368
     */
369
    public function getPseudoSales()
370
    {
371
        return $this->pseudoSales;
372
    }
373
374
    /**
375
     * @param int $pseudoSales
376
     *
377
     * @return Article
378
     */
379 5
    public function setPseudoSales($pseudoSales)
380
    {
381 5
        $this->pseudoSales = $pseudoSales;
382
383 5
        return $this;
384
    }
385
386
    /**
387
     * @return bool
388
     */
389
    public function isHighlight()
390
    {
391
        return $this->highlight;
392
    }
393
394
    /**
395
     * @param bool $highlight
396
     *
397
     * @return Article
398
     */
399 5
    public function setHighlight($highlight)
400
    {
401 5
        $this->highlight = $highlight;
402
403 5
        return $this;
404
    }
405
406
    /**
407
     * @return string
408
     */
409
    public function getKeywords()
410
    {
411
        return $this->keywords;
412
    }
413
414
    /**
415
     * @param string $keywords
416
     *
417
     * @return Article
418
     */
419 5
    public function setKeywords($keywords)
420
    {
421 5
        $this->keywords = $keywords;
422
423 5
        return $this;
424
    }
425
426
    /**
427
     * @return string
428
     */
429
    public function getMetaTitle()
430
    {
431
        return $this->metaTitle;
432
    }
433
434
    /**
435
     * @param string $metaTitle
436
     *
437
     * @return Article
438
     */
439 5
    public function setMetaTitle($metaTitle)
440
    {
441 5
        $this->metaTitle = $metaTitle;
442
443 5
        return $this;
444
    }
445
446
    /**
447
     * @return string
448
     */
449
    public function getChanged()
450
    {
451
        return $this->changed;
452
    }
453
454
    /**
455
     * @param string $changed
456
     *
457
     * @return Article
458
     */
459
    public function setChanged($changed)
460
    {
461
        $this->changed = $changed;
462
463
        return $this;
464
    }
465
466
    /**
467
     * @return bool
468
     */
469
    public function isPriceGroupActive()
470
    {
471
        return $this->priceGroupActive;
472
    }
473
474
    /**
475
     * @param bool $priceGroupActive
476
     *
477
     * @return Article
478
     */
479 5
    public function setPriceGroupActive($priceGroupActive)
480
    {
481 5
        $this->priceGroupActive = $priceGroupActive;
482
483 5
        return $this;
484
    }
485
486
    /**
487
     * @return bool
488
     */
489
    public function isLastStock()
490
    {
491
        return $this->lastStock;
492
    }
493
494
    /**
495
     * @param bool $lastStock
496
     *
497
     * @return Article
498
     */
499 5
    public function setLastStock($lastStock)
500
    {
501 5
        $this->lastStock = $lastStock;
502
503 5
        return $this;
504
    }
505
506
    /**
507
     * @return bool
508
     */
509
    public function isCrossBundleLook()
510
    {
511
        return $this->crossBundleLook;
512
    }
513
514
    /**
515
     * @param bool $crossBundleLook
516
     *
517
     * @return Article
518
     */
519 5
    public function setCrossBundleLook($crossBundleLook)
520
    {
521 5
        $this->crossBundleLook = $crossBundleLook;
522
523 5
        return $this;
524
    }
525
526
    /**
527
     * @return bool
528
     */
529
    public function isNotification()
530
    {
531
        return $this->notification;
532
    }
533
534
    /**
535
     * @param bool $notification
536
     *
537
     * @return Article
538
     */
539 5
    public function setNotification($notification)
540
    {
541 5
        $this->notification = $notification;
542
543 5
        return $this;
544
    }
545
546
    /**
547
     * @return string
548
     */
549
    public function getTemplate()
550
    {
551
        return $this->template;
552
    }
553
554
    /**
555
     * @param string $template
556
     *
557
     * @return Article
558
     */
559 5
    public function setTemplate($template)
560
    {
561 5
        $this->template = $template;
562
563 5
        return $this;
564
    }
565
566
    /**
567
     * @return int
568
     */
569
    public function getMode()
570
    {
571
        return $this->mode;
572
    }
573
574
    /**
575
     * @param int $mode
576
     *
577
     * @return Article
578
     */
579 5
    public function setMode($mode)
580
    {
581 5
        $this->mode = $mode;
582
583 5
        return $this;
584
    }
585
586
    /**
587
     * @return string
588
     */
589
    public function getAvailableFrom()
590
    {
591
        return $this->availableFrom;
592
    }
593
594
    /**
595
     * @param string $availableFrom
596
     *
597
     * @return Article
598
     */
599 5
    public function setAvailableFrom($availableFrom)
600
    {
601 5
        $this->availableFrom = $availableFrom;
602
603 5
        return $this;
604
    }
605
606
    /**
607
     * @return string
608
     */
609
    public function getAvailableTo()
610
    {
611
        return $this->availableTo;
612
    }
613
614
    /**
615
     * @param string $availableTo
616
     *
617
     * @return Article
618
     */
619 5
    public function setAvailableTo($availableTo)
620
    {
621 5
        $this->availableTo = $availableTo;
622
623 5
        return $this;
624
    }
625
626
    /**
627
     * @return array
628
     */
629
    public function getAttributes()
630
    {
631
        return $this->attribute;
632
    }
633
634
    /**
635
     * @param ArticleAttribute $attributes
636
     *
637
     * @return Article
638
     */
639
    public function setAttributes($attributes)
640
    {
641
        $this->attribute = $attributes;
642
643
        return $this;
644
    }
645
646
    /**
647
     * @return mixed
648
     */
649
    public function getCategories()
650
    {
651
        return $this->categories;
652
    }
653
654
    /**
655
     * @param Category[] $categories
656
     * @return Article
657
     */
658
    public function setCategories($categories)
659
    {
660
        $this->categories = $categories;
661
        return $this;
662
    }
663
664
}
665