1 | <?php |
||
12 | class OutPoint extends Serializable implements OutPointInterface |
||
13 | { |
||
14 | /** |
||
15 | * @var BufferInterface |
||
16 | */ |
||
17 | private $hashPrevOutput; |
||
18 | |||
19 | /** |
||
20 | * @var int |
||
21 | */ |
||
22 | private $nPrevOutput; |
||
23 | |||
24 | /** |
||
25 | * OutPoint constructor. |
||
26 | * @param BufferInterface $hashPrevOutput |
||
27 | * @param int $nPrevOutput |
||
28 | */ |
||
29 | 2536 | public function __construct(BufferInterface $hashPrevOutput, $nPrevOutput) |
|
42 | |||
43 | /** |
||
44 | * @return static |
||
45 | */ |
||
46 | public static function makeCoinbase() |
||
50 | |||
51 | /** |
||
52 | * @return BufferInterface |
||
53 | */ |
||
54 | 2610 | public function getTxId() |
|
58 | |||
59 | /** |
||
60 | * @return int |
||
61 | */ |
||
62 | 2606 | public function getVout() |
|
66 | |||
67 | /** |
||
68 | * @param OutPointInterface $outPoint |
||
69 | * @return int |
||
70 | */ |
||
71 | 20 | public function equals(OutPointInterface $outPoint) |
|
80 | |||
81 | /** |
||
82 | * @return BufferInterface |
||
83 | */ |
||
84 | 16 | public function getBuffer() |
|
88 | } |
||
89 |