1 | <?php |
||
14 | class TransactionInput extends Serializable implements TransactionInputInterface |
||
15 | { |
||
16 | use FunctionAliasArrayAccess; |
||
17 | |||
18 | /** |
||
19 | * @var OutPointInterface |
||
20 | */ |
||
21 | private $outPoint; |
||
22 | |||
23 | /** |
||
24 | * @var ScriptInterface |
||
25 | */ |
||
26 | private $script; |
||
27 | |||
28 | /** |
||
29 | * @var string|int |
||
30 | */ |
||
31 | private $sequence; |
||
32 | |||
33 | /** |
||
34 | * @param OutPointInterface $outPoint |
||
35 | * @param ScriptInterface $script |
||
36 | * @param int $sequence |
||
37 | */ |
||
38 | 1164 | public function __construct(OutPointInterface $outPoint, ScriptInterface $script, $sequence = self::SEQUENCE_FINAL) |
|
50 | 1164 | ||
51 | /** |
||
52 | * @return TransactionInput |
||
53 | */ |
||
54 | public function __clone() |
||
58 | |||
59 | /** |
||
60 | * @return OutPointInterface |
||
61 | */ |
||
62 | public function getOutPoint() |
||
66 | |||
67 | /** |
||
68 | * @return Script |
||
69 | */ |
||
70 | public function getScript() |
||
74 | |||
75 | /** |
||
76 | * @return int |
||
77 | */ |
||
78 | public function getSequence() |
||
82 | |||
83 | /** |
||
84 | * @param TransactionInputInterface $input |
||
85 | * @return bool |
||
86 | */ |
||
87 | public function equals(TransactionInputInterface $input) |
||
101 | |||
102 | 6 | /** |
|
103 | 6 | * Check whether this transaction is a Coinbase transaction |
|
104 | * |
||
105 | * @return boolean |
||
106 | */ |
||
107 | public function isCoinbase() |
||
114 | |||
115 | /** |
||
116 | * @return bool |
||
117 | */ |
||
118 | public function isFinal() |
||
123 | |||
124 | /** |
||
125 | * @return BufferInterface |
||
126 | */ |
||
127 | public function getBuffer() |
||
131 | } |
||
132 |