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.

Currency   A
last analyzed

Complexity

Total Complexity 16

Size/Duplication

Total Lines 195
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Test Coverage

Coverage 0%

Importance

Changes 0
Metric Value
wmc 16
lcom 0
cbo 1
dl 0
loc 195
ccs 0
cts 72
cp 0
rs 10
c 0
b 0
f 0

16 Methods

Rating   Name   Duplication   Size   Complexity  
A getId() 0 4 1
A setId() 0 6 1
A getCurrency() 0 4 1
A setCurrency() 0 6 1
A getName() 0 4 1
A setName() 0 6 1
A isDefault() 0 4 1
A setDefault() 0 6 1
A getFactor() 0 4 1
A setFactor() 0 6 1
A getSymbol() 0 4 1
A setSymbol() 0 6 1
A getSymbolPosition() 0 4 1
A setSymbolPosition() 0 6 1
A getPosition() 0 4 1
A setPosition() 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 Currency.
15
 */
16
class Currency extends Base
17
{
18
    /**
19
     * @var int
20
     */
21
    protected $id;
22
    /**
23
     * @var string
24
     */
25
    protected $currency;
26
    /**
27
     * @var string
28
     */
29
    protected $name;
30
    /**
31
     * @var bool
32
     */
33
    protected $default;
34
    /**
35
     * @var float
36
     */
37
    protected $factor;
38
    /**
39
     * @var string
40
     */
41
    protected $symbol;
42
    /**
43
     * @var int
44
     */
45
    protected $symbolPosition;
46
    /**
47
     * @var int
48
     */
49
    protected $position;
50
51
    /**
52
     * @return int
53
     */
54
    public function getId()
55
    {
56
        return $this->id;
57
    }
58
59
    /**
60
     * @param int $id
61
     *
62
     * @return Currency
63
     */
64
    public function setId($id)
65
    {
66
        $this->id = $id;
67
68
        return $this;
69
    }
70
71
    /**
72
     * @return string
73
     */
74
    public function getCurrency()
75
    {
76
        return $this->currency;
77
    }
78
79
    /**
80
     * @param string $currency
81
     *
82
     * @return Currency
83
     */
84
    public function setCurrency($currency)
85
    {
86
        $this->currency = $currency;
87
88
        return $this;
89
    }
90
91
    /**
92
     * @return string
93
     */
94
    public function getName()
95
    {
96
        return $this->name;
97
    }
98
99
    /**
100
     * @param string $name
101
     *
102
     * @return Currency
103
     */
104
    public function setName($name)
105
    {
106
        $this->name = $name;
107
108
        return $this;
109
    }
110
111
    /**
112
     * @return bool
113
     */
114
    public function isDefault()
115
    {
116
        return $this->default;
117
    }
118
119
    /**
120
     * @param bool $default
121
     *
122
     * @return Currency
123
     */
124
    public function setDefault($default)
125
    {
126
        $this->default = $default;
127
128
        return $this;
129
    }
130
131
    /**
132
     * @return float
133
     */
134
    public function getFactor()
135
    {
136
        return $this->factor;
137
    }
138
139
    /**
140
     * @param float $factor
141
     *
142
     * @return Currency
143
     */
144
    public function setFactor($factor)
145
    {
146
        $this->factor = $factor;
147
148
        return $this;
149
    }
150
151
    /**
152
     * @return string
153
     */
154
    public function getSymbol()
155
    {
156
        return $this->symbol;
157
    }
158
159
    /**
160
     * @param string $symbol
161
     *
162
     * @return Currency
163
     */
164
    public function setSymbol($symbol)
165
    {
166
        $this->symbol = $symbol;
167
168
        return $this;
169
    }
170
171
    /**
172
     * @return int
173
     */
174
    public function getSymbolPosition()
175
    {
176
        return $this->symbolPosition;
177
    }
178
179
    /**
180
     * @param int $symbolPosition
181
     *
182
     * @return Currency
183
     */
184
    public function setSymbolPosition($symbolPosition)
185
    {
186
        $this->symbolPosition = $symbolPosition;
187
188
        return $this;
189
    }
190
191
    /**
192
     * @return int
193
     */
194
    public function getPosition()
195
    {
196
        return $this->position;
197
    }
198
199
    /**
200
     * @param int $position
201
     *
202
     * @return Currency
203
     */
204
    public function setPosition($position)
205
    {
206
        $this->position = $position;
207
208
        return $this;
209
    }
210
}
211