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 ( 499c68...2aea15 )
by Krzysztof
02:06
created

Ticker::getId()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 2
CRAP Score 1

Importance

Changes 0
Metric Value
dl 0
loc 4
ccs 2
cts 2
cp 1
rs 10
c 0
b 0
f 0
cc 1
nc 1
nop 0
crap 1
1
<?php
2
3
namespace Coinpaprika\Model;
4
5
/**
6
 * Class Ticker
7
 *
8
 * @package \Coinpaprika\Model
9
 *
10
 * @author Krzysztof Przybyszewski <[email protected]>
11
 */
12
class Ticker
13
{
14
    /**
15
     * @var string
16
     */
17
    private $id;
18
19
    /**
20
     * @var string
21
     */
22
    private $name;
23
24
    /**
25
     * @var string
26
     */
27
    private $symbol;
28
29
    /**
30
     * @var int
31
     */
32
    private $rank;
33
34
    /**
35
     * @var float
36
     */
37
    private $priceUSD;
38
39
    /**
40
     * @var float
41
     */
42
    private $priceBTC;
43
44
    /**
45
     * @var int
46
     */
47
    private $volume24hUSD;
48
49
    /**
50
     * @var int
51
     */
52
    private $marketCapUSD;
53
54
    /**
55
     * @var int
56
     */
57
    private $circulatingSupply;
58
59
    /**
60
     * @var int
61
     */
62
    private $totalSupply;
63
64
    /**
65
     * @var int
66
     */
67
    private $maxSupply;
68
69
    /**
70
     * @var float
71
     */
72
    private $percentChange1h;
73
74
    /**
75
     * @var float
76
     */
77
    private $percentChange24h;
78
79
    /**
80
     * @var float
81
     */
82
    private $percentChange7d;
83
84
    /**
85
     * @var int
86
     */
87
    private $lastUpdated;
88
89
    /**
90
     * @return string
91
     */
92 2
    public function getId(): string
93
    {
94 2
        return $this->id;
95
    }
96
97
    /**
98
     * @param string $id
99
     */
100 2
    public function setId(string $id): void
101
    {
102 2
        $this->id = $id;
103 2
    }
104
105
    /**
106
     * @return string
107
     */
108 2
    public function getName(): string
109
    {
110 2
        return $this->name;
111
    }
112
113
    /**
114
     * @param string $name
115
     */
116 2
    public function setName(string $name): void
117
    {
118 2
        $this->name = $name;
119 2
    }
120
121
    /**
122
     * @return string
123
     */
124 2
    public function getSymbol(): string
125
    {
126 2
        return $this->symbol;
127
    }
128
129
    /**
130
     * @param string $symbol
131
     */
132 2
    public function setSymbol(string $symbol): void
133
    {
134 2
        $this->symbol = $symbol;
135 2
    }
136
137
    /**
138
     * @return int
139
     */
140 2
    public function getRank(): int
141
    {
142 2
        return $this->rank;
143
    }
144
145
    /**
146
     * @param int $rank
147
     */
148 2
    public function setRank(int $rank): void
149
    {
150 2
        $this->rank = $rank;
151 2
    }
152
153
    /**
154
     * @return float
155
     */
156 2
    public function getPriceUSD(): float
157
    {
158 2
        return $this->priceUSD;
159
    }
160
161
    /**
162
     * @param float $priceUSD
163
     */
164 2
    public function setPriceUSD(float $priceUSD): void
165
    {
166 2
        $this->priceUSD = $priceUSD;
167 2
    }
168
169
    /**
170
     * @return float
171
     */
172 2
    public function getPriceBTC(): float
173
    {
174 2
        return $this->priceBTC;
175
    }
176
177
    /**
178
     * @param float $priceBTC
179
     */
180 2
    public function setPriceBTC(float $priceBTC): void
181
    {
182 2
        $this->priceBTC = $priceBTC;
183 2
    }
184
185
    /**
186
     * @return int
187
     */
188 2
    public function getVolume24hUSD(): int
189
    {
190 2
        return $this->volume24hUSD;
191
    }
192
193
    /**
194
     * @param int $volume24hUSD
195
     */
196 2
    public function setVolume24hUSD(int $volume24hUSD): void
197
    {
198 2
        $this->volume24hUSD = $volume24hUSD;
199 2
    }
200
201
    /**
202
     * @return int
203
     */
204 2
    public function getMarketCapUSD(): int
205
    {
206 2
        return $this->marketCapUSD;
207
    }
208
209
    /**
210
     * @param int $marketCapUSD
211
     */
212 2
    public function setMarketCapUSD(int $marketCapUSD): void
213
    {
214 2
        $this->marketCapUSD = $marketCapUSD;
215 2
    }
216
217
    /**
218
     * @return int
219
     */
220 2
    public function getCirculatingSupply(): int
221
    {
222 2
        return $this->circulatingSupply;
223
    }
224
225
    /**
226
     * @param int $circulatingSupply
227
     */
228 2
    public function setCirculatingSupply(int $circulatingSupply): void
229
    {
230 2
        $this->circulatingSupply = $circulatingSupply;
231 2
    }
232
233
    /**
234
     * @return int
235
     */
236 2
    public function getTotalSupply(): int
237
    {
238 2
        return $this->totalSupply;
239
    }
240
241
    /**
242
     * @param int $totalSupply
243
     */
244 2
    public function setTotalSupply(int $totalSupply): void
245
    {
246 2
        $this->totalSupply = $totalSupply;
247 2
    }
248
249
    /**
250
     * @return int
251
     */
252 2
    public function getMaxSupply(): int
253
    {
254 2
        return $this->maxSupply;
255
    }
256
257
    /**
258
     * @param int $maxSupply
259
     */
260 2
    public function setMaxSupply(int $maxSupply): void
261
    {
262 2
        $this->maxSupply = $maxSupply;
263 2
    }
264
265
    /**
266
     * @return float
267
     */
268 2
    public function getPercentChange1h(): float
269
    {
270 2
        return $this->percentChange1h;
271
    }
272
273
    /**
274
     * @param float $percentChange1h
275
     */
276 2
    public function setPercentChange1h(float $percentChange1h): void
277
    {
278 2
        $this->percentChange1h = $percentChange1h;
279 2
    }
280
281
    /**
282
     * @return float
283
     */
284 2
    public function getPercentChange24h(): float
285
    {
286 2
        return $this->percentChange24h;
287
    }
288
289
    /**
290
     * @param float $percentChange24h
291
     */
292 2
    public function setPercentChange24h(float $percentChange24h): void
293
    {
294 2
        $this->percentChange24h = $percentChange24h;
295 2
    }
296
297
    /**
298
     * @return float
299
     */
300 2
    public function getPercentChange7d(): float
301
    {
302 2
        return $this->percentChange7d;
303
    }
304
305
    /**
306
     * @param float $percentChange7d
307
     */
308 2
    public function setPercentChange7d(float $percentChange7d): void
309
    {
310 2
        $this->percentChange7d = $percentChange7d;
311 2
    }
312
313
    /**
314
     * @return int
315
     */
316 2
    public function getLastUpdated(): int
317
    {
318 2
        return $this->lastUpdated;
319
    }
320
321
    /**
322
     * @param int $lastUpdated
323
     */
324 2
    public function setLastUpdated(int $lastUpdated): void
325
    {
326 2
        $this->lastUpdated = $lastUpdated;
327 2
    }
328
}
329