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.

MarketSummary   A
last analyzed

Complexity

Total Complexity 9

Size/Duplication

Total Lines 83
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Test Coverage

Coverage 100%

Importance

Changes 0
Metric Value
wmc 9
lcom 0
cbo 1
dl 0
loc 83
ccs 18
cts 18
cp 1
rs 10
c 0
b 0
f 0

9 Methods

Rating   Name   Duplication   Size   Complexity  
A getCurrentHighestBidPrice() 0 4 1
A getCurrentLowestOfferPrice() 0 4 1
A getDayAveragePrice() 0 4 1
A getDayHighestPrice() 0 4 1
A getDayLowestPrice() 0 4 1
A getDayVolumeXbt() 0 4 1
A getLastPrice() 0 4 1
A getPrimaryCurrencyCode() 0 4 1
A getSecondaryCurrencyCode() 0 4 1
1
<?php
2
3
namespace IndependentReserve\Object;
4
5
class MarketSummary extends AbstractTimestampedObject
6
{
7
    /**
8
     * Current highest bid on order book.
9
     * @return float
10
     */
11 2
    public function getCurrentHighestBidPrice()
12
    {
13 2
        return $this->object->CurrentHighestBidPrice;
14
    }
15
16
    /**
17
     * Current lowest offer on order book.
18
     * @return float
19
     */
20 2
    public function getCurrentLowestOfferPrice()
21
    {
22 2
        return $this->object->CurrentLowestOfferPrice;
23
    }
24
25
    /**
26
     * Weighted average traded price over last 24 hours.
27
     * @return double
28
     */
29 2
    public function getDayAveragePrice()
30
    {
31 2
        return $this->object->DayAvgPrice;
32
    }
33
34
    /**
35
     * Highest traded price over last 24 hours.
36
     * @return double
37
     */
38 2
    public function getDayHighestPrice()
39
    {
40 2
        return $this->object->DayHighestPrice;
41
    }
42
43
    /**
44
     * Lowest traded price over last 24 hours.
45
     * @return double
46
     */
47 2
    public function getDayLowestPrice()
48
    {
49 2
        return $this->object->DayLowestPrice;
50
    }
51
52
    /**
53
     * Volume of primary currency traded in last 24 hours.
54
     * @return double
55
     */
56 2
    public function getDayVolumeXbt()
57
    {
58 2
        return $this->object->DayVolumeXbt;
59
    }
60
61
    /**
62
     * Last traded price.
63
     * @return double
64
     */
65 2
    public function getLastPrice()
66
    {
67 2
        return $this->object->LastPrice;
68
    }
69
70
    /**
71
     * The primary currency being summarised.
72
     * @return string
73
     */
74 2
    public function getPrimaryCurrencyCode()
75
    {
76 2
        return $this->object->PrimaryCurrencyCode;
77
    }
78
79
    /**
80
     * The secondary currency being used for pricing.
81
     * @return string
82
     */
83 2
    public function getSecondaryCurrencyCode()
84
    {
85 2
        return $this->object->SecondaryCurrencyCode;
86
    }
87
}
88