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.

Country   A
last analyzed

Complexity

Total Complexity 32

Size/Duplication

Total Lines 387
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Test Coverage

Coverage 0%

Importance

Changes 0
Metric Value
wmc 32
lcom 0
cbo 1
dl 0
loc 387
ccs 0
cts 144
cp 0
rs 9.84
c 0
b 0
f 0

32 Methods

Rating   Name   Duplication   Size   Complexity  
A getId() 0 4 1
A setId() 0 6 1
A getName() 0 4 1
A setName() 0 6 1
A getIso() 0 4 1
A setIso() 0 6 1
A getIsoName() 0 4 1
A setIsoName() 0 6 1
A getPosition() 0 4 1
A setPosition() 0 6 1
A getDescription() 0 4 1
A setDescription() 0 6 1
A isShippingFree() 0 4 1
A setShippingFree() 0 6 1
A isTaxFree() 0 4 1
A setTaxFree() 0 6 1
A isTaxFreeUstId() 0 4 1
A setTaxFreeUstId() 0 6 1
A isTaxFreeUstIdChecked() 0 4 1
A setTaxFreeUstIdChecked() 0 6 1
A isActive() 0 4 1
A setActive() 0 6 1
A getIso3() 0 4 1
A setIso3() 0 6 1
A isDisplayStateInRegistration() 0 4 1
A setDisplayStateInRegistration() 0 6 1
A isForceStateInRegistration() 0 4 1
A setForceStateInRegistration() 0 6 1
A getAreaId() 0 4 1
A setAreaId() 0 6 1
A getStates() 0 4 1
A setStates() 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 Country.
15
 */
16
class Country extends Base
17
{
18
    /**
19
     * @var int
20
     */
21
    protected $id;
22
    /**
23
     * @var string
24
     */
25
    protected $name;
26
    /**
27
     * @var string
28
     */
29
    protected $iso;
30
    /**
31
     * @var string
32
     */
33
    protected $isoName;
34
    /**
35
     * @var int
36
     */
37
    protected $position;
38
    /**
39
     * @var string
40
     */
41
    protected $description;
42
    /**
43
     * @var bool
44
     */
45
    protected $shippingFree;
46
    /**
47
     * @var bool
48
     */
49
    protected $taxFree;
50
    /**
51
     * @var bool
52
     */
53
    protected $taxFreeUstId;
54
    /**
55
     * @var bool
56
     */
57
    protected $taxFreeUstIdChecked;
58
    /**
59
     * @var bool
60
     */
61
    protected $active;
62
    /**
63
     * @var string
64
     */
65
    protected $iso3;
66
    /**
67
     * @var bool
68
     */
69
    protected $displayStateInRegistration;
70
    /**
71
     * @var bool
72
     */
73
    protected $forceStateInRegistration;
74
    /**
75
     * @var int
76
     */
77
    protected $areaId;
78
    /**
79
     * @var State[]
80
     */
81
    protected $states;
82
83
    /**
84
     * @return int
85
     */
86
    public function getId()
87
    {
88
        return $this->id;
89
    }
90
91
    /**
92
     * @param int $id
93
     *
94
     * @return Country
95
     */
96
    public function setId($id)
97
    {
98
        $this->id = $id;
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 Country
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 getIso()
127
    {
128
        return $this->iso;
129
    }
130
131
    /**
132
     * @param string $iso
133
     *
134
     * @return Country
135
     */
136
    public function setIso($iso)
137
    {
138
        $this->iso = $iso;
139
140
        return $this;
141
    }
142
143
    /**
144
     * @return string
145
     */
146
    public function getIsoName()
147
    {
148
        return $this->isoName;
149
    }
150
151
    /**
152
     * @param string $isoName
153
     *
154
     * @return Country
155
     */
156
    public function setIsoName($isoName)
157
    {
158
        $this->isoName = $isoName;
159
160
        return $this;
161
    }
162
163
    /**
164
     * @return int
165
     */
166
    public function getPosition()
167
    {
168
        return $this->position;
169
    }
170
171
    /**
172
     * @param int $position
173
     *
174
     * @return Country
175
     */
176
    public function setPosition($position)
177
    {
178
        $this->position = $position;
179
180
        return $this;
181
    }
182
183
    /**
184
     * @return string
185
     */
186
    public function getDescription()
187
    {
188
        return $this->description;
189
    }
190
191
    /**
192
     * @param string $description
193
     *
194
     * @return Country
195
     */
196
    public function setDescription($description)
197
    {
198
        $this->description = $description;
199
200
        return $this;
201
    }
202
203
    /**
204
     * @return bool
205
     */
206
    public function isShippingFree()
207
    {
208
        return $this->shippingFree;
209
    }
210
211
    /**
212
     * @param bool $shippingFree
213
     *
214
     * @return Country
215
     */
216
    public function setShippingFree($shippingFree)
217
    {
218
        $this->shippingFree = $shippingFree;
219
220
        return $this;
221
    }
222
223
    /**
224
     * @return bool
225
     */
226
    public function isTaxFree()
227
    {
228
        return $this->taxFree;
229
    }
230
231
    /**
232
     * @param bool $taxFree
233
     *
234
     * @return Country
235
     */
236
    public function setTaxFree($taxFree)
237
    {
238
        $this->taxFree = $taxFree;
239
240
        return $this;
241
    }
242
243
    /**
244
     * @return bool
245
     */
246
    public function isTaxFreeUstId()
247
    {
248
        return $this->taxFreeUstId;
249
    }
250
251
    /**
252
     * @param bool $taxFreeUstId
253
     *
254
     * @return Country
255
     */
256
    public function setTaxFreeUstId($taxFreeUstId)
257
    {
258
        $this->taxFreeUstId = $taxFreeUstId;
259
260
        return $this;
261
    }
262
263
    /**
264
     * @return bool
265
     */
266
    public function isTaxFreeUstIdChecked()
267
    {
268
        return $this->taxFreeUstIdChecked;
269
    }
270
271
    /**
272
     * @param bool $taxFreeUstIdChecked
273
     *
274
     * @return Country
275
     */
276
    public function setTaxFreeUstIdChecked($taxFreeUstIdChecked)
277
    {
278
        $this->taxFreeUstIdChecked = $taxFreeUstIdChecked;
279
280
        return $this;
281
    }
282
283
    /**
284
     * @return bool
285
     */
286
    public function isActive()
287
    {
288
        return $this->active;
289
    }
290
291
    /**
292
     * @param bool $active
293
     *
294
     * @return Country
295
     */
296
    public function setActive($active)
297
    {
298
        $this->active = $active;
299
300
        return $this;
301
    }
302
303
    /**
304
     * @return string
305
     */
306
    public function getIso3()
307
    {
308
        return $this->iso3;
309
    }
310
311
    /**
312
     * @param string $iso3
313
     *
314
     * @return Country
315
     */
316
    public function setIso3($iso3)
317
    {
318
        $this->iso3 = $iso3;
319
320
        return $this;
321
    }
322
323
    /**
324
     * @return bool
325
     */
326
    public function isDisplayStateInRegistration()
327
    {
328
        return $this->displayStateInRegistration;
329
    }
330
331
    /**
332
     * @param bool $displayStateInRegistration
333
     *
334
     * @return Country
335
     */
336
    public function setDisplayStateInRegistration($displayStateInRegistration)
337
    {
338
        $this->displayStateInRegistration = $displayStateInRegistration;
339
340
        return $this;
341
    }
342
343
    /**
344
     * @return bool
345
     */
346
    public function isForceStateInRegistration()
347
    {
348
        return $this->forceStateInRegistration;
349
    }
350
351
    /**
352
     * @param bool $forceStateInRegistration
353
     *
354
     * @return Country
355
     */
356
    public function setForceStateInRegistration($forceStateInRegistration)
357
    {
358
        $this->forceStateInRegistration = $forceStateInRegistration;
359
360
        return $this;
361
    }
362
363
    /**
364
     * @return int
365
     */
366
    public function getAreaId()
367
    {
368
        return $this->areaId;
369
    }
370
371
    /**
372
     * @param int $areaId
373
     *
374
     * @return Country
375
     */
376
    public function setAreaId($areaId)
377
    {
378
        $this->areaId = $areaId;
379
380
        return $this;
381
    }
382
383
    /**
384
     * @return State[]
385
     */
386
    public function getStates()
387
    {
388
        return $this->states;
389
    }
390
391
    /**
392
     * @param State[] $states
393
     *
394
     * @return Country
395
     */
396
    public function setStates($states)
397
    {
398
        $this->states = $states;
399
400
        return $this;
401
    }
402
}
403