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.
Completed
Push — master ( b98016...0803ae )
by Mohamed
40:16 queued 14:56
created

Locale::setId()   A

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 Locale.
15
 */
16
class Locale extends Base
17
{
18
    /**
19
     * @var int
20
     */
21
    protected $id;
22
    /**
23
     * @var string
24
     */
25
    protected $locale;
26
    /**
27
     * @var string
28
     */
29
    protected $language;
30
    /**
31
     * @var string
32
     */
33
    protected $territory;
34
35
    /**
36
     * @return int
37
     */
38
    public function getId()
39
    {
40
        return $this->id;
41
    }
42
43
    /**
44
     * @param int $id
45
     *
46
     * @return Locale
47
     */
48
    public function setId($id)
49
    {
50
        $this->id = $id;
51
52
        return $this;
53
    }
54
55
    /**
56
     * @return string
57
     */
58
    public function getLocale()
59
    {
60
        return $this->locale;
61
    }
62
63
    /**
64
     * @param string $locale
65
     *
66
     * @return Locale
67
     */
68
    public function setLocale($locale)
69
    {
70
        $this->locale = $locale;
71
72
        return $this;
73
    }
74
75
    /**
76
     * @return string
77
     */
78
    public function getLanguage()
79
    {
80
        return $this->language;
81
    }
82
83
    /**
84
     * @param string $language
85
     *
86
     * @return Locale
87
     */
88
    public function setLanguage($language)
89
    {
90
        $this->language = $language;
91
92
        return $this;
93
    }
94
95
    /**
96
     * @return string
97
     */
98
    public function getTerritory()
99
    {
100
        return $this->territory;
101
    }
102
103
    /**
104
     * @param string $territory
105
     *
106
     * @return Locale
107
     */
108
    public function setTerritory($territory)
109
    {
110
        $this->territory = $territory;
111
112
        return $this;
113
    }
114
}
115