1 | <?php |
||
9 | class TransactionOutput extends Serializable implements TransactionOutputInterface |
||
10 | { |
||
11 | |||
12 | /** |
||
13 | * @var string|int |
||
14 | */ |
||
15 | private $value; |
||
16 | |||
17 | /** |
||
18 | * @var ScriptInterface |
||
19 | */ |
||
20 | private $script; |
||
21 | |||
22 | /** |
||
23 | * Initialize class |
||
24 | * |
||
25 | * @param int $value |
||
26 | * @param ScriptInterface $script |
||
27 | */ |
||
28 | 2668 | public function __construct($value, ScriptInterface $script) |
|
33 | |||
34 | /** |
||
35 | * @see TransactionOutputInterface::getValue() |
||
36 | */ |
||
37 | public function getValue() |
||
41 | |||
42 | /** |
||
43 | * @see TransactionOutputInterface::getScript() |
||
44 | */ |
||
45 | 2818 | public function getScript() |
|
49 | |||
50 | /** |
||
51 | * @param TransactionOutputInterface $output |
||
52 | * @return bool |
||
53 | 2806 | */ |
|
54 | public function equals(TransactionOutputInterface $output) |
||
63 | |||
64 | 48 | /** |
|
65 | 48 | * @see \BitWasp\Bitcoin\SerializableInterface::getBuffer() |
|
66 | 12 | */ |
|
67 | public function getBuffer() |
||
71 | } |
||
72 |