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.

Price   A
last analyzed

Complexity

Total Complexity 22

Size/Duplication

Total Lines 267
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Test Coverage

Coverage 0%

Importance

Changes 0
Metric Value
wmc 22
lcom 0
cbo 1
dl 0
loc 267
ccs 0
cts 99
cp 0
rs 10
c 0
b 0
f 0

22 Methods

Rating   Name   Duplication   Size   Complexity  
A getCustomerGroupKey() 0 4 1
A setCustomerGroupKey() 0 6 1
A getCustomerGroup() 0 4 1
A setCustomerGroup() 0 6 1
A getArticleDetailsId() 0 4 1
A setArticleDetailsId() 0 6 1
A getArticleId() 0 4 1
A setArticleId() 0 6 1
A getId() 0 4 1
A setId() 0 6 1
A getFrom() 0 4 1
A setFrom() 0 6 1
A getTo() 0 4 1
A setTo() 0 6 1
A getPrice() 0 4 1
A setPrice() 0 6 1
A getPseudoPrice() 0 4 1
A setPseudoPrice() 0 6 1
A getBasePrice() 0 4 1
A setBasePrice() 0 6 1
A getPercent() 0 4 1
A setPercent() 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 Price.
15
 */
16
class Price extends Base
17
{
18
    /**
19
     * @var string
20
     */
21
    protected $customerGroupKey;
22
    /**
23
     * @var CustomerGroup
24
     */
25
    protected $customerGroup;
26
    /**
27
     * @var int
28
     */
29
    protected $articleDetailsId;
30
    /**
31
     * @var int
32
     */
33
    protected $articleId;
34
    /**
35
     * @var int
36
     */
37
    protected $id;
38
    /**
39
     * @var int
40
     */
41
    protected $from;
42
    /**
43
     * @var string
44
     */
45
    protected $to;
46
    /**
47
     * @var float
48
     */
49
    protected $price;
50
    /**
51
     * @var float
52
     */
53
    protected $pseudoPrice;
54
    /**
55
     * @var float
56
     */
57
    protected $basePrice;
58
    /**
59
     * @var float
60
     */
61
    protected $percent;
62
63
    /**
64
     * @return string
65
     */
66
    public function getCustomerGroupKey()
67
    {
68
        return $this->customerGroupKey;
69
    }
70
71
    /**
72
     * @param string $customerGroupKey
73
     *
74
     * @return Price
75
     */
76
    public function setCustomerGroupKey($customerGroupKey)
77
    {
78
        $this->customerGroupKey = $customerGroupKey;
79
80
        return $this;
81
    }
82
83
    /**
84
     * @return CustomerGroup
85
     */
86
    public function getCustomerGroup()
87
    {
88
        return $this->customerGroup;
89
    }
90
91
    /**
92
     * @param CustomerGroup $customerGroup
93
     *
94
     * @return Price
95
     */
96
    public function setCustomerGroup($customerGroup)
97
    {
98
        $this->customerGroup = $customerGroup;
99
100
        return $this;
101
    }
102
103
    /**
104
     * @return int
105
     */
106
    public function getArticleDetailsId()
107
    {
108
        return $this->articleDetailsId;
109
    }
110
111
    /**
112
     * @param int $articleDetailsId
113
     *
114
     * @return Price
115
     */
116
    public function setArticleDetailsId($articleDetailsId)
117
    {
118
        $this->articleDetailsId = $articleDetailsId;
119
120
        return $this;
121
    }
122
123
    /**
124
     * @return int
125
     */
126
    public function getArticleId()
127
    {
128
        return $this->articleId;
129
    }
130
131
    /**
132
     * @param int $articleId
133
     *
134
     * @return Price
135
     */
136
    public function setArticleId($articleId)
137
    {
138
        $this->articleId = $articleId;
139
140
        return $this;
141
    }
142
143
    /**
144
     * @return int
145
     */
146
    public function getId()
147
    {
148
        return $this->id;
149
    }
150
151
    /**
152
     * @param int $id
153
     *
154
     * @return Price
155
     */
156
    public function setId($id)
157
    {
158
        $this->id = $id;
159
160
        return $this;
161
    }
162
163
    /**
164
     * @return int
165
     */
166
    public function getFrom()
167
    {
168
        return $this->from;
169
    }
170
171
    /**
172
     * @param int $from
173
     *
174
     * @return Price
175
     */
176
    public function setFrom($from)
177
    {
178
        $this->from = $from;
179
180
        return $this;
181
    }
182
183
    /**
184
     * @return string
185
     */
186
    public function getTo()
187
    {
188
        return $this->to;
189
    }
190
191
    /**
192
     * @param string $to
193
     *
194
     * @return Price
195
     */
196
    public function setTo($to)
197
    {
198
        $this->to = $to;
199
200
        return $this;
201
    }
202
203
    /**
204
     * @return float
205
     */
206
    public function getPrice()
207
    {
208
        return $this->price;
209
    }
210
211
    /**
212
     * @param float $price
213
     *
214
     * @return Price
215
     */
216
    public function setPrice($price)
217
    {
218
        $this->price = $price;
219
220
        return $this;
221
    }
222
223
    /**
224
     * @return float
225
     */
226
    public function getPseudoPrice()
227
    {
228
        return $this->pseudoPrice;
229
    }
230
231
    /**
232
     * @param float $pseudoPrice
233
     *
234
     * @return Price
235
     */
236
    public function setPseudoPrice($pseudoPrice)
237
    {
238
        $this->pseudoPrice = $pseudoPrice;
239
240
        return $this;
241
    }
242
243
    /**
244
     * @return float
245
     */
246
    public function getBasePrice()
247
    {
248
        return $this->basePrice;
249
    }
250
251
    /**
252
     * @param float $basePrice
253
     *
254
     * @return Price
255
     */
256
    public function setBasePrice($basePrice)
257
    {
258
        $this->basePrice = $basePrice;
259
260
        return $this;
261
    }
262
263
    /**
264
     * @return float
265
     */
266
    public function getPercent()
267
    {
268
        return $this->percent;
269
    }
270
271
    /**
272
     * @param float $percent
273
     *
274
     * @return Price
275
     */
276
    public function setPercent($percent)
277
    {
278
        $this->percent = $percent;
279
280
        return $this;
281
    }
282
}
283