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

GlobalStats   A

Complexity

Total Complexity 10

Size/Duplication

Total Lines 107
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Test Coverage

Coverage 100%

Importance

Changes 0
Metric Value
wmc 10
lcom 0
cbo 0
dl 0
loc 107
ccs 25
cts 25
cp 1
rs 10
c 0
b 0
f 0

10 Methods

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