Completed
Branch master (56c2f5)
by
unknown
07:05
created

UTXO::offsetUnset()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 3
rs 10
c 0
b 0
f 0
cc 1
eloc 1
nc 1
nop 1
1
<?php
2
3
namespace Blocktrail\SDK;
4
5
use BitWasp\Bitcoin\Address\AddressInterface;
6
use BitWasp\Bitcoin\Script\ScriptInterface;
7
8
class UTXO {
9
10
    public $hash;
11
    public $index;
12
    public $value;
13
14
    /**
15
     * @var AddressInterface
16
     */
17
    public $address;
18
19
    /**
20
     * @var ScriptInterface
21
     */
22
    public $scriptPubKey;
23
    public $path;
24
25
    /**
26
     * @var ScriptInterface
27
     */
28
    public $redeemScript;
29
30
    public function __construct($hash, $index, $value = null, AddressInterface $address = null, ScriptInterface $scriptPubKey = null, $path = null, ScriptInterface $redeemScript = null) {
31
        $this->hash = $hash;
32
        $this->index = $index;
33
        $this->value = $value;
34
        $this->address = $address;
35
        $this->scriptPubKey = $scriptPubKey;
36
        $this->path = $path;
37
        $this->redeemScript = $redeemScript;
38
    }
39
}
40