Completed
Push — master ( 410ea8...0c9ae2 )
by thomas
105:23 queued 33:17
created

Utxo   A

Complexity

Total Complexity 3

Size/Duplication

Total Lines 38
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Test Coverage

Coverage 100%

Importance

Changes 2
Bugs 0 Features 1
Metric Value
wmc 3
c 2
b 0
f 1
lcom 0
cbo 0
dl 0
loc 38
ccs 7
cts 7
cp 1
rs 10

3 Methods

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 5 1
A getOutPoint() 0 4 1
A getOutput() 0 4 1
1
<?php
2
3
namespace BitWasp\Bitcoin\Utxo;
4
5
use BitWasp\Bitcoin\Transaction\OutPoint;
6
use BitWasp\Bitcoin\Transaction\OutPointInterface;
7
use BitWasp\Bitcoin\Transaction\TransactionOutputInterface;
8
9
class Utxo
10
{
11
    /**
12
     * @var OutPointInterface
13
     */
14
    private $outPoint;
15
16
    /**
17
     * @var TransactionOutputInterface
18
     */
19
    private $prevOut;
20
21
    /**
22
     * @param OutPointInterface $outPoint
23
     * @param TransactionOutputInterface $prevOut
24
     */
25
    public function __construct(OutPointInterface $outPoint, TransactionOutputInterface $prevOut)
26
    {
27
        $this->outPoint = $outPoint;
28
        $this->prevOut = $prevOut;
29 18
    }
30
31 18
    /**
32 18
     * @return OutPoint
33 18
     */
34 18
    public function getOutPoint()
35
    {
36
        return $this->outPoint;
37
    }
38
39 6
    /**
40
     * @return TransactionOutputInterface
41 6
     */
42
    public function getOutput()
43
    {
44
        return $this->prevOut;
45
    }
46
}
47