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.

Transaction::getSettleTimestamp()   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 Transaction extends AbstractObject
8
{
9
    /**
10
     * Running balance in account.
11
     * @return double
12
     */
13 2
    public function getBalance()
14
    {
15 2
        return $this->object->Balance;
16
    }
17
18
    /**
19
     * Related Bitcoin network transaction.
20
     * @return string|null
21
     */
22 2
    public function getBitcoinTransactionId()
23
    {
24 2
        return $this->object->BitcoinTransactionId;
25
    }
26
27
    /**
28
     * Related Bitcoin network transaction output index.
29
     * @return string|null
30
     */
31 2
    public function getBitcoinTransactionOutputIndex()
32
    {
33 2
        return $this->object->BitcoinTransactionOutputIndex;
34
    }
35
36
    /**
37
     * Comments related to transaction.
38
     * @return string|null
39
     */
40 2
    public function getComment()
41
    {
42 2
        return $this->object->Comment;
43
    }
44
45
    /**
46
     * UTC created timestamp of transaction.
47
     * @return DateTime
48
     */
49 3
    public function getCreatedTimestamp()
50
    {
51 3
        return new DateTime($this->object->CreatedTimestampUtc);
52
    }
53
54
    /**
55
     * Credit amount.
56
     * @return double|null
57
     */
58 2
    public function getCredit()
59
    {
60 2
        return $this->object->Credit;
61
    }
62
63
    /**
64
     * Currency of account this transaction relates to.
65
     * @return string
66
     */
67 2
    public function getCurrencyCode()
68
    {
69 2
        return $this->object->CurrencyCode;
70
    }
71
72
    /**
73
     * Debit amount
74
     * @return double
75
     */
76 2
    public function getDebit()
77
    {
78 2
        return $this->object->Debit;
79
    }
80
81
    /**
82
     * UTC settlement timestamp.
83
     * @return DateTime
84
     */
85 3
    public function getSettleTimestamp()
86
    {
87 3
        return new DateTime($this->object->SettleTimestampUtc);
88
    }
89
90
    /**
91
     * Transaction status.
92
     * @return string
93
     */
94 2
    public function getStatus()
95
    {
96 2
        return $this->object->Status;
97
    }
98
99
    /**
100
     * Transaction type.
101
     * @return string
102
     */
103 2
    public function getType()
104
    {
105 2
        return $this->object->Type;
106
    }
107
}
108