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.
Passed
Pull Request — master (#7)
by Alexander
49:36 queued 24:33
created

ConfiguratorGroup::setId()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 6
Code Lines 3

Duplication

Lines 6
Ratio 100 %

Code Coverage

Tests 0
CRAP Score 2

Importance

Changes 1
Bugs 0 Features 1
Metric Value
c 1
b 0
f 1
dl 6
loc 6
ccs 0
cts 5
cp 0
rs 9.4285
cc 1
eloc 3
nc 1
nop 1
crap 2
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 ConfiguratorGroup
14
 */
15 View Code Duplication
class ConfiguratorGroup extends Base
0 ignored issues
show
Duplication introduced by
This class seems to be duplicated in your project.

Duplicated code is one of the most pungent code smells. If you need to duplicate the same code in three or more different places, we strongly encourage you to look into extracting the code into a single class or operation.

You can also find more detailed suggestions in the “Code” section of your repository.

Loading history...
16
{
17
    /**
18
     * @var int
19
     */
20
    protected $id;
21
    /**
22
     * @var string
23
     */
24
    protected $description;
25
    /**
26
     * @var string
27
     */
28
    protected $name;
29
    /**
30
     * @var int
31
     */
32
    protected $position;
33
34
    /**
35
     * @return int
36
     */
37
    public function getId()
38
    {
39
        return $this->id;
40
    }
41
42
    /**
43
     * @param int $id
44
     *
45
     * @return ConfiguratorGroup
46
     */
47
    public function setId($id)
48
    {
49
        $this->id = $id;
50
51
        return $this;
52
    }
53
54
    /**
55
     * @return string
56
     */
57
    public function getDescription()
58
    {
59
        return $this->description;
60
    }
61
62
    /**
63
     * @param string $description
64
     *
65
     * @return ConfiguratorGroup
66
     */
67
    public function setDescription($description)
68
    {
69
        $this->description = $description;
70
71
        return $this;
72
    }
73
74
    /**
75
     * @return string
76
     */
77
    public function getName()
78
    {
79
        return $this->name;
80
    }
81
82
    /**
83
     * @param string $name
84
     *
85
     * @return ConfiguratorGroup
86
     */
87
    public function setName($name)
88
    {
89
        $this->name = $name;
90
91
        return $this;
92
    }
93
94
    /**
95
     * @return int
96
     */
97
    public function getPosition()
98
    {
99
        return $this->position;
100
    }
101
102
    /**
103
     * @param int $position
104
     *
105
     * @return ConfiguratorGroup
106
     */
107
    public function setPosition($position)
108
    {
109
        $this->position = $position;
110
111
        return $this;
112
    }
113
}
114