1 | <?php |
||
13 | class TransactionInputSerializer |
||
14 | { |
||
15 | /** |
||
16 | * @var OutPointSerializer |
||
17 | 322 | */ |
|
18 | private $outpointSerializer; |
||
19 | 322 | ||
20 | 322 | /** |
|
21 | 322 | * TransactionInputSerializer constructor. |
|
22 | 322 | * @param OutPointSerializer $outPointSerializer |
|
23 | 322 | */ |
|
24 | 322 | public function __construct(OutPointSerializer $outPointSerializer) |
|
28 | |||
29 | /** |
||
30 | * @return \BitWasp\Buffertools\Template |
||
31 | 292 | */ |
|
32 | private function getInputTemplate() |
||
39 | 292 | ||
40 | 292 | /** |
|
41 | * @param TransactionInputInterface $input |
||
42 | * @return Buffer |
||
43 | */ |
||
44 | public function serialize(TransactionInputInterface $input) |
||
54 | 240 | ||
55 | /** |
||
56 | 240 | * @param Parser $parser |
|
57 | * @return TransactionInput |
||
58 | 240 | * @throws \BitWasp\Buffertools\Exceptions\ParserOutOfRange |
|
59 | 240 | */ |
|
60 | 240 | public function fromParser(Parser $parser) |
|
76 | |||
77 | /** |
||
78 | * @param $string |
||
79 | * @return TransactionInput |
||
80 | * @throws \BitWasp\Buffertools\Exceptions\ParserOutOfRange |
||
81 | */ |
||
82 | public function parse($string) |
||
87 | } |
||
88 |