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.

GlobalStats   A
last analyzed

Complexity

Total Complexity 10

Size/Duplication

Total Lines 105
Duplicated Lines 0 %

Test Coverage

Coverage 100%

Importance

Changes 1
Bugs 0 Features 0
Metric Value
eloc 16
c 1
b 0
f 0
dl 0
loc 105
ccs 24
cts 24
cp 1
rs 10
wmc 10

10 Methods

Rating   Name   Duplication   Size   Complexity  
A setVolume24hUSD() 0 3 1
A getCryptocurrenciesNumber() 0 3 1
A getLastUpdated() 0 3 1
A getVolume24hUSD() 0 3 1
A setCryptocurrenciesNumber() 0 3 1
A setBitcoinDominancePercentage() 0 3 1
A setMarketCapUsd() 0 3 1
A getBitcoinDominancePercentage() 0 3 1
A getMarketCapUsd() 0 3 1
A setLastUpdated() 0 3 1
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