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.

Locale::getId()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 0
CRAP Score 2

Importance

Changes 0
Metric Value
dl 0
loc 4
ccs 0
cts 4
cp 0
rs 10
c 0
b 0
f 0
cc 1
eloc 2
nc 1
nop 0
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 Locale
14
 */
15
class Locale extends Base
16
{
17
    /**
18
     * @var int
19
     */
20
    protected $id;
21
    /**
22
     * @var string
23
     */
24
    protected $locale;
25
    /**
26
     * @var string
27
     */
28
    protected $language;
29
    /**
30
     * @var string
31
     */
32
    protected $territory;
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 Locale
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 getLocale()
58
    {
59
        return $this->locale;
60
    }
61
62
    /**
63
     * @param string $locale
64
     *
65
     * @return Locale
66
     */
67
    public function setLocale($locale)
68
    {
69
        $this->locale = $locale;
70
71
        return $this;
72
    }
73
74
    /**
75
     * @return string
76
     */
77
    public function getLanguage()
78
    {
79
        return $this->language;
80
    }
81
82
    /**
83
     * @param string $language
84
     *
85
     * @return Locale
86
     */
87
    public function setLanguage($language)
88
    {
89
        $this->language = $language;
90
91
        return $this;
92
    }
93
94
    /**
95
     * @return string
96
     */
97
    public function getTerritory()
98
    {
99
        return $this->territory;
100
    }
101
102
    /**
103
     * @param string $territory
104
     *
105
     * @return Locale
106
     */
107
    public function setTerritory($territory)
108
    {
109
        $this->territory = $territory;
110
111
        return $this;
112
    }
113
}
114