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

UTXO   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 32
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Importance

Changes 0
Metric Value
wmc 1
lcom 0
cbo 0
dl 0
loc 32
rs 10
c 0
b 0
f 0

1 Method

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 9 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