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

Utxo::getVout()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 2
CRAP Score 1
Metric Value
dl 0
loc 4
ccs 2
cts 2
cp 1
rs 10
cc 1
eloc 2
nc 1
nop 0
crap 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