|
1
|
|
|
<?php |
|
2
|
|
|
|
|
3
|
|
|
namespace Coinpaprika\Model; |
|
4
|
|
|
|
|
5
|
|
|
/** |
|
6
|
|
|
* Class GlobalStats |
|
7
|
|
|
* |
|
8
|
|
|
* @package \Coinpaprika\Model |
|
9
|
|
|
* |
|
10
|
|
|
* @author Krzysztof Przybyszewski <[email protected]> |
|
11
|
|
|
*/ |
|
12
|
|
|
class GlobalStats |
|
13
|
|
|
{ |
|
14
|
|
|
/** |
|
15
|
|
|
* @var int |
|
16
|
|
|
*/ |
|
17
|
|
|
private $marketCapUsd; |
|
18
|
|
|
|
|
19
|
|
|
/** |
|
20
|
|
|
* @var int |
|
21
|
|
|
*/ |
|
22
|
|
|
private $volume24hUSD; |
|
23
|
|
|
|
|
24
|
|
|
/** |
|
25
|
|
|
* @var float |
|
26
|
|
|
*/ |
|
27
|
|
|
private $bitcoinDominancePercentage; |
|
28
|
|
|
|
|
29
|
|
|
/** |
|
30
|
|
|
* @var int |
|
31
|
|
|
*/ |
|
32
|
|
|
private $cryptocurrenciesNumber; |
|
33
|
|
|
|
|
34
|
|
|
/** |
|
35
|
|
|
* @var int |
|
36
|
|
|
*/ |
|
37
|
|
|
private $lastUpdated; |
|
38
|
|
|
|
|
39
|
|
|
/** |
|
40
|
|
|
* @return int |
|
41
|
|
|
*/ |
|
42
|
1 |
|
public function getMarketCapUsd(): int |
|
43
|
|
|
{ |
|
44
|
1 |
|
return $this->marketCapUsd; |
|
45
|
|
|
} |
|
46
|
|
|
|
|
47
|
|
|
/** |
|
48
|
|
|
* @param int $marketCapUsd |
|
49
|
|
|
*/ |
|
50
|
1 |
|
public function setMarketCapUsd(int $marketCapUsd): void |
|
51
|
|
|
{ |
|
52
|
1 |
|
$this->marketCapUsd = $marketCapUsd; |
|
53
|
1 |
|
} |
|
54
|
|
|
|
|
55
|
|
|
/** |
|
56
|
|
|
* @return int |
|
57
|
|
|
*/ |
|
58
|
1 |
|
public function getVolume24hUSD(): int |
|
59
|
|
|
{ |
|
60
|
1 |
|
return $this->volume24hUSD; |
|
61
|
|
|
} |
|
62
|
|
|
|
|
63
|
|
|
/** |
|
64
|
|
|
* @param int $volume24hUSD |
|
65
|
|
|
*/ |
|
66
|
1 |
|
public function setVolume24hUSD(int $volume24hUSD): void |
|
67
|
|
|
{ |
|
68
|
1 |
|
$this->volume24hUSD = $volume24hUSD; |
|
69
|
1 |
|
} |
|
70
|
|
|
|
|
71
|
|
|
/** |
|
72
|
|
|
* @return float |
|
73
|
|
|
*/ |
|
74
|
1 |
|
public function getBitcoinDominancePercentage(): float |
|
75
|
|
|
{ |
|
76
|
1 |
|
return $this->bitcoinDominancePercentage; |
|
77
|
|
|
} |
|
78
|
|
|
|
|
79
|
|
|
/** |
|
80
|
|
|
* @param float $bitcoinDominancePercentage |
|
81
|
|
|
*/ |
|
82
|
1 |
|
public function setBitcoinDominancePercentage(float $bitcoinDominancePercentage): void |
|
83
|
|
|
{ |
|
84
|
1 |
|
$this->bitcoinDominancePercentage = $bitcoinDominancePercentage; |
|
85
|
1 |
|
} |
|
86
|
|
|
|
|
87
|
|
|
/** |
|
88
|
|
|
* @return int |
|
89
|
|
|
*/ |
|
90
|
1 |
|
public function getCryptocurrenciesNumber(): int |
|
91
|
|
|
{ |
|
92
|
1 |
|
return $this->cryptocurrenciesNumber; |
|
93
|
|
|
} |
|
94
|
|
|
|
|
95
|
|
|
/** |
|
96
|
|
|
* @param int $cryptocurrenciesNumber |
|
97
|
|
|
*/ |
|
98
|
1 |
|
public function setCryptocurrenciesNumber(int $cryptocurrenciesNumber): void |
|
99
|
|
|
{ |
|
100
|
1 |
|
$this->cryptocurrenciesNumber = $cryptocurrenciesNumber; |
|
101
|
1 |
|
} |
|
102
|
|
|
|
|
103
|
|
|
/** |
|
104
|
|
|
* @return int |
|
105
|
|
|
*/ |
|
106
|
1 |
|
public function getLastUpdated(): int |
|
107
|
|
|
{ |
|
108
|
1 |
|
return $this->lastUpdated; |
|
109
|
|
|
} |
|
110
|
|
|
|
|
111
|
|
|
/** |
|
112
|
|
|
* @param int $lastUpdated |
|
113
|
|
|
*/ |
|
114
|
1 |
|
public function setLastUpdated(int $lastUpdated): void |
|
115
|
|
|
{ |
|
116
|
1 |
|
$this->lastUpdated = $lastUpdated; |
|
117
|
1 |
|
} |
|
118
|
|
|
} |
|
119
|
|
|
|