PendingTransaction::setFee()   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 1
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 PendingTransaction
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
     * Date of confirmation of the transaction in the format UNIX timestamp
69
     *
70
     * @var int|null
71
     */
72
    private ?int $timestamp;
73
74
    /**
75
     * @var string|null
76
     */
77
    private ?string $time;
78
79
    /**
80
     * @return int|null
81
     */
82
    public function getBlockHeight(): ?int
83
    {
84
        return $this->blockHeight;
85
    }
86
87
    /**
88
     * @param int|null $blockHeight
89
     */
90
    public function setBlockHeight(?int $blockHeight): void
91
    {
92
        $this->blockHeight = $blockHeight;
93
    }
94
95
    /**
96
     * @return string|null
97
     */
98
    public function getType(): ?string
99
    {
100
        return $this->type;
101
    }
102
103
    /**
104
     * @param string|null $type
105
     */
106
    public function setType(?string $type): void
107
    {
108
        $this->type = $type;
109
    }
110
111
    /**
112
     * @return string|null
113
     */
114
    public function getHash(): ?string
115
    {
116
        return $this->hash;
117
    }
118
119
    /**
120
     * @param string|null $hash
121
     */
122
    public function setHash(?string $hash): void
123
    {
124
        $this->hash = $hash;
125
    }
126
127
    /**
128
     * @return int|null
129
     */
130
    public function getOut(): ?int
131
    {
132
        return $this->out;
133
    }
134
135
    /**
136
     * @param int|null $out
137
     */
138
    public function setOut(?int $out): void
139
    {
140
        $this->out = $out;
141
    }
142
143
    /**
144
     * @return int|null
145
     */
146
    public function getAmount(): ?int
147
    {
148
        return $this->amount;
149
    }
150
151
    /**
152
     * @param int|null $amount
153
     */
154
    public function setAmount(?int $amount): void
155
    {
156
        $this->amount = $amount;
157
    }
158
159
    /**
160
     * @return string|null
161
     */
162
    public function getAddress(): ?string
163
    {
164
        return $this->address;
165
    }
166
167
    /**
168
     * @param string|null $address
169
     */
170
    public function setAddress(?string $address): void
171
    {
172
        $this->address = $address;
173
    }
174
175
    /**
176
     * @return int|null
177
     */
178
    public function getFee(): ?int
179
    {
180
        return $this->fee;
181
    }
182
183
    /**
184
     * @param int|null $fee
185
     */
186
    public function setFee(?int $fee): void
187
    {
188
        $this->fee = $fee;
189
    }
190
191
    /**
192
     * @return int|null
193
     */
194
    public function getTimestamp(): ?int
195
    {
196
        return $this->timestamp;
197
    }
198
199
    /**
200
     * @param int|null $timestamp
201
     */
202
    public function setTimestamp(?int $timestamp): void
203
    {
204
        $this->timestamp = $timestamp;
205
    }
206
207
    /**
208
     * @return string|null
209
     */
210
    public function getTime(): ?string
211
    {
212
        return $this->time;
213
    }
214
215
    /**
216
     * @param string|null $time
217
     */
218
    public function setTime(?string $time): void
219
    {
220
        $this->time = $time;
221
    }
222
}
223