1 | <?php |
||
13 | class TransactionInput extends Serializable implements TransactionInputInterface |
||
14 | { |
||
15 | |||
16 | /** |
||
17 | * @var OutPointInterface |
||
18 | */ |
||
19 | private $outPoint; |
||
20 | |||
21 | /** |
||
22 | * @var ScriptInterface |
||
23 | */ |
||
24 | private $script; |
||
25 | |||
26 | /** |
||
27 | * @var string|int |
||
28 | */ |
||
29 | private $sequence; |
||
30 | |||
31 | /** |
||
32 | * @param OutPointInterface $outPoint |
||
33 | * @param ScriptInterface $script |
||
34 | * @param int $sequence |
||
35 | */ |
||
36 | 2428 | public function __construct(OutPointInterface $outPoint, ScriptInterface $script, $sequence = self::SEQUENCE_FINAL) |
|
42 | |||
43 | /** |
||
44 | * @return TransactionInput |
||
45 | */ |
||
46 | public function __clone() |
||
50 | |||
51 | /** |
||
52 | * @return OutPointInterface |
||
53 | */ |
||
54 | 2353 | public function getOutPoint() |
|
58 | |||
59 | /** |
||
60 | * @return Script |
||
61 | */ |
||
62 | 2338 | public function getScript() |
|
66 | |||
67 | /** |
||
68 | * @return int |
||
69 | */ |
||
70 | 2341 | public function getSequence() |
|
74 | |||
75 | /** |
||
76 | * @param TransactionInputInterface $input |
||
77 | * @return bool |
||
78 | */ |
||
79 | 6 | public function equals(TransactionInputInterface $input) |
|
93 | |||
94 | /** |
||
95 | * Check whether this transaction is a Coinbase transaction |
||
96 | * |
||
97 | * @return boolean |
||
98 | */ |
||
99 | 6 | public function isCoinbase() |
|
106 | |||
107 | /** |
||
108 | * @return bool |
||
109 | */ |
||
110 | 3 | public function isFinal() |
|
115 | |||
116 | /** |
||
117 | * @return BufferInterface |
||
118 | */ |
||
119 | 2314 | public function getBuffer() |
|
123 | } |
||
124 |