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.

HistorySummaryItem   A
last analyzed

Complexity

Total Complexity 10

Size/Duplication

Total Lines 92
Duplicated Lines 0 %

Coupling/Cohesion

Components 1
Dependencies 1

Test Coverage

Coverage 100%

Importance

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

10 Methods

Rating   Name   Duplication   Size   Complexity  
A getAverageSecondaryCurrencyPrice() 0 4 1
A getClosingSecondaryCurrencyPrice() 0 4 1
A getHighestSecondaryCurrencyPrice() 0 4 1
A getLowestSecondaryCurrencyPrice() 0 4 1
A getNumberOfTrades() 0 4 1
A getOpeningSecondaryCurrencyPrice() 0 4 1
A getPrimaryCurrencyVolume() 0 4 1
A getSecondaryCurrencyVolume() 0 4 1
A getStartTimestamp() 0 4 1
A getEndTimestamp() 0 4 1
1
<?php
2
3
namespace IndependentReserve\Object;
4
5
use DateTime;
6
7
class HistorySummaryItem extends AbstractObject
8
{
9
    /**
10
     * Average traded price during hour.
11
     * @return double
12
     */
13 1
    public function getAverageSecondaryCurrencyPrice()
14
    {
15 1
        return $this->object->AverageSecondaryCurrencyPrice;
16
    }
17
18
    /**
19
     * Last traded price in hour.
20
     * @return double
21
     */
22 1
    public function getClosingSecondaryCurrencyPrice()
23
    {
24 1
        return $this->object->ClosingSecondaryCurrencyPrice;
25
    }
26
27
    /**
28
     * Highest traded price during hour.
29
     * @return double
30
     */
31 1
    public function getHighestSecondaryCurrencyPrice()
32
    {
33 1
        return $this->object->HighestSecondaryCurrencyPrice;
34
    }
35
36
    /**
37
     * Lowest traded price during hour.
38
     * @return double
39
     */
40 1
    public function getLowestSecondaryCurrencyPrice()
41
    {
42 1
        return $this->object->LowestSecondaryCurrencyPrice;
43
    }
44
45
    /**
46
     * Number of trades executed during hour.
47
     * @return int
48
     */
49 1
    public function getNumberOfTrades()
50
    {
51 1
        return $this->object->NumberOfTrades;
52
    }
53
54
    /**
55
     * Opening traded price at start of hour.
56
     * @return double
57
     */
58 1
    public function getOpeningSecondaryCurrencyPrice()
59
    {
60 1
        return $this->object->OpeningSecondaryCurrencyPrice;
61
    }
62
63
    /**
64
     * Volume of primary currency trade during hour.
65
     * @return double
66
     */
67 1
    public function getPrimaryCurrencyVolume()
68
    {
69 1
        return $this->object->PrimaryCurrencyVolume;
70
    }
71
72
    /**
73
     * Volume of secondary currency traded during hour.
74
     * @return double
75
     */
76 1
    public function getSecondaryCurrencyVolume()
77
    {
78 1
        return $this->object->AverageSecondaryCurrencyPrice;
79
    }
80
81
    /**
82
     * UTC Start time of hour.
83
     * @return DateTime
84
     */
85 1
    public function getStartTimestamp()
86
    {
87 1
        return new DateTime($this->object->StartTimestampUtc);
88
    }
89
90
    /**
91
     * UTC End time of hour.
92
     * @return DateTime
93
     */
94 1
    public function getEndTimestamp()
95
    {
96 1
        return new DateTime($this->object->EndTimestampUtc);
97
    }
98
}
99