Transaction::getAmount()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
cc 1
eloc 1
c 1
b 0
f 0
nc 1
nop 0
dl 0
loc 3
rs 10
1
<?php
2
3
declare(strict_types=1);
4
5
/*
6
 * Package: PHP Bitaps API
7
 *
8
 * (c) Eldar Gazaliev <[email protected]>
9
 *
10
 *  Link: <https://github.com/MyZik>
11
 *
12
 * For the full copyright and license information, please view the LICENSE file
13
 * that was distributed with this source code.
14
 */
15
16
namespace Bitaps\WalletAPI\Model;
17
18
class Transaction
19
{
20
    /**
21
     * Block number in the blockchain in which this transaction is included
22
     *
23
     * @var int|null
24
     */
25
    private ?int $blockHeight;
26
27
    /**
28
     * @var string|null
29
     */
30
    private ?string $type;
31
32
    /**
33
     * Transaction hash
34
     *
35
     * @var string|null
36
     */
37
    private ?string $hash;
38
39
    /**
40
     * Out number
41
     *
42
     * @var int|null
43
     */
44
    private ?int $out;
45
46
    /**
47
     * Transaction amount
48
     *
49
     * @var int|null
50
     */
51
    private ?int $amount;
52
53
    /**
54
     * Receiver address
55
     *
56
     * @var string|null
57
     */
58
    private ?string $address;
59
60
    /**
61
     * Service fee
62
     *
63
     * @var int|null
64
     */
65
    private ?int $fee;
66
67
    /**
68
     * Wallet balance to current transaction
69
     *
70
     * @var int|null
71
     */
72
    private ?int $timelineBalance;
73
74
    /**
75
     * Count of sent transactions before the current transaction
76
     *
77
     * @var int|null
78
     */
79
    private ?int $timelineSentCount;
80
81
    /**
82
     * Count of transactions received before the current transaction
83
     *
84
     * @var int|null
85
     */
86
    private ?int $timelineReceivedCount;
87
88
    /**
89
     * Number of invalid transaction before current transaction
90
     *
91
     * @var int|null
92
     */
93
    private ?int $timelineInvalidCount;
94
95
    /**
96
     * Creation date of the transaction in the UNIX timestamp format
97
     *
98
     * @var int|null
99
     */
100
    private ?int $createTimestamp;
101
102
    /**
103
     * Date of confirmation of the transaction in the format UNIX timestamp
104
     *
105
     * @var int|null
106
     */
107
    private ?int $timestamp;
108
109
    /**
110
     * @var string|null
111
     */
112
    private ?string $createTime;
113
114
    /**
115
     * @var string|null
116
     */
117
    private ?string $time;
118
119
    /**
120
     * @return int|null
121
     */
122
    public function getBlockHeight(): ?int
123
    {
124
        return $this->blockHeight;
125
    }
126
127
    /**
128
     * @return string|null
129
     */
130
    public function getType(): ?string
131
    {
132
        return $this->type;
133
    }
134
135
    /**
136
     * @return string|null
137
     */
138
    public function getHash(): ?string
139
    {
140
        return $this->hash;
141
    }
142
143
    /**
144
     * @return int|null
145
     */
146
    public function getOut(): ?int
147
    {
148
        return $this->out;
149
    }
150
151
    /**
152
     * @return int|null
153
     */
154
    public function getAmount(): ?int
155
    {
156
        return $this->amount;
157
    }
158
159
    /**
160
     * @return string|null
161
     */
162
    public function getAddress(): ?string
163
    {
164
        return $this->address;
165
    }
166
167
    /**
168
     * @return int|null
169
     */
170
    public function getFee(): ?int
171
    {
172
        return $this->fee;
173
    }
174
175
    /**
176
     * @return int|null
177
     */
178
    public function getTimelineBalance(): ?int
179
    {
180
        return $this->timelineBalance;
181
    }
182
183
    /**
184
     * @return int|null
185
     */
186
    public function getTimelineSentCount(): ?int
187
    {
188
        return $this->timelineSentCount;
189
    }
190
191
    /**
192
     * @return int|null
193
     */
194
    public function getTimelineReceivedCount(): ?int
195
    {
196
        return $this->timelineReceivedCount;
197
    }
198
199
    /**
200
     * @return int|null
201
     */
202
    public function getTimelineInvalidCount(): ?int
203
    {
204
        return $this->timelineInvalidCount;
205
    }
206
207
    /**
208
     * @return int|null
209
     */
210
    public function getCreateTimestamp(): ?int
211
    {
212
        return $this->createTimestamp;
213
    }
214
215
    /**
216
     * @return int|null
217
     */
218
    public function getTimestamp(): ?int
219
    {
220
        return $this->timestamp;
221
    }
222
223
    /**
224
     * @return string|null
225
     */
226
    public function getCreateTime(): ?string
227
    {
228
        return $this->createTime;
229
    }
230
231
    /**
232
     * @return string|null
233
     */
234
    public function getTime(): ?string
235
    {
236
        return $this->time;
237
    }
238
}
239