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::getSecondaryCurrencyVolume()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 4

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 2
CRAP Score 1

Importance

Changes 0
Metric Value
dl 0
loc 4
c 0
b 0
f 0
ccs 2
cts 2
cp 1
rs 10
cc 1
nc 1
nop 0
crap 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