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.

State   A
last analyzed

Complexity

Total Complexity 12

Size/Duplication

Total Lines 147
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Test Coverage

Coverage 0%

Importance

Changes 0
Metric Value
wmc 12
lcom 0
cbo 1
dl 0
loc 147
ccs 0
cts 54
cp 0
rs 10
c 0
b 0
f 0

12 Methods

Rating   Name   Duplication   Size   Complexity  
A getId() 0 4 1
A setId() 0 6 1
A getCountryId() 0 4 1
A setCountryId() 0 6 1
A getPosition() 0 4 1
A setPosition() 0 6 1
A getName() 0 4 1
A setName() 0 6 1
A getShortCode() 0 4 1
A setShortCode() 0 6 1
A isActive() 0 4 1
A setActive() 0 6 1
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 State.
15
 */
16
class State extends Base
17
{
18
    /**
19
     * @var int
20
     */
21
    protected $id;
22
    /**
23
     * @var int
24
     */
25
    protected $countryId;
26
    /**
27
     * @var int
28
     */
29
    protected $position;
30
    /**
31
     * @var string
32
     */
33
    protected $name;
34
    /**
35
     * @var string
36
     */
37
    protected $shortCode;
38
    /**
39
     * @var bool
40
     */
41
    protected $active;
42
43
    /**
44
     * @return int
45
     */
46
    public function getId()
47
    {
48
        return $this->id;
49
    }
50
51
    /**
52
     * @param int $id
53
     *
54
     * @return State
55
     */
56
    public function setId($id)
57
    {
58
        $this->id = $id;
59
60
        return $this;
61
    }
62
63
    /**
64
     * @return int
65
     */
66
    public function getCountryId()
67
    {
68
        return $this->countryId;
69
    }
70
71
    /**
72
     * @param int $countryId
73
     *
74
     * @return State
75
     */
76
    public function setCountryId($countryId)
77
    {
78
        $this->countryId = $countryId;
79
80
        return $this;
81
    }
82
83
    /**
84
     * @return int
85
     */
86
    public function getPosition()
87
    {
88
        return $this->position;
89
    }
90
91
    /**
92
     * @param int $position
93
     *
94
     * @return State
95
     */
96
    public function setPosition($position)
97
    {
98
        $this->position = $position;
99
100
        return $this;
101
    }
102
103
    /**
104
     * @return string
105
     */
106
    public function getName()
107
    {
108
        return $this->name;
109
    }
110
111
    /**
112
     * @param string $name
113
     *
114
     * @return State
115
     */
116
    public function setName($name)
117
    {
118
        $this->name = $name;
119
120
        return $this;
121
    }
122
123
    /**
124
     * @return string
125
     */
126
    public function getShortCode()
127
    {
128
        return $this->shortCode;
129
    }
130
131
    /**
132
     * @param string $shortCode
133
     *
134
     * @return State
135
     */
136
    public function setShortCode($shortCode)
137
    {
138
        $this->shortCode = $shortCode;
139
140
        return $this;
141
    }
142
143
    /**
144
     * @return bool
145
     */
146
    public function isActive()
147
    {
148
        return $this->active;
149
    }
150
151
    /**
152
     * @param bool $active
153
     *
154
     * @return State
155
     */
156
    public function setActive($active)
157
    {
158
        $this->active = $active;
159
160
        return $this;
161
    }
162
}
163