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.

ConfiguratorSet::setId()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 6

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 0
CRAP Score 2

Importance

Changes 0
Metric Value
dl 0
loc 6
ccs 0
cts 5
cp 0
rs 10
c 0
b 0
f 0
cc 1
nc 1
nop 1
crap 2
1
<?php
2
/**
3
 * Neta\Shopware\SDK\Entity.
4
 *
5
 * Copyright 2016 LeadCommerce
6
 *
7
 * @author    Alexander Mahrt <[email protected]>
8
 * @copyright 2016 LeadCommerce <[email protected]>
9
 */
10
11
namespace Neta\Shopware\SDK\Entity;
12
13
/**
14
 * Class ConfiguratorSet.
15
 */
16
class ConfiguratorSet extends Base
17
{
18
    /**
19
     * @var int
20
     */
21
    protected $id;
22
    /**
23
     * @var string
24
     */
25
    protected $name;
26
    /**
27
     * @var bool
28
     */
29
    protected $public;
30
    /**
31
     * @var int
32
     */
33
    protected $type;
34
    /**
35
     * @var ConfiguratorGroup[]
36
     */
37
    protected $groups;
38
39
    /**
40
     * @return int
41
     */
42
    public function getId()
43
    {
44
        return $this->id;
45
    }
46
47
    /**
48
     * @param int $id
49
     *
50
     * @return ConfiguratorSet
51
     */
52
    public function setId($id)
53
    {
54
        $this->id = $id;
55
56
        return $this;
57
    }
58
59
    /**
60
     * @return string
61
     */
62
    public function getName()
63
    {
64
        return $this->name;
65
    }
66
67
    /**
68
     * @param string $name
69
     *
70
     * @return ConfiguratorSet
71
     */
72
    public function setName($name)
73
    {
74
        $this->name = $name;
75
76
        return $this;
77
    }
78
79
    /**
80
     * @return bool
81
     */
82
    public function isPublic()
83
    {
84
        return $this->public;
85
    }
86
87
    /**
88
     * @param bool $public
89
     *
90
     * @return ConfiguratorSet
91
     */
92
    public function setPublic($public)
93
    {
94
        $this->public = $public;
95
96
        return $this;
97
    }
98
99
    /**
100
     * @return int
101
     */
102
    public function getType()
103
    {
104
        return $this->type;
105
    }
106
107
    /**
108
     * @param int $type
109
     *
110
     * @return ConfiguratorSet
111
     */
112
    public function setType($type)
113
    {
114
        $this->type = $type;
115
116
        return $this;
117
    }
118
119
    /**
120
     * @return ConfiguratorGroup[]
121
     */
122
    public function getGroups()
123
    {
124
        return $this->groups;
125
    }
126
127
    /**
128
     * @param ConfiguratorGroup[] $groups
129
     *
130
     * @return ConfiguratorSet
131
     */
132
    public function setGroups($groups)
133
    {
134
        $this->groups = $groups;
135
136
        return $this;
137
    }
138
}
139