| 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 | 2428 | public function __construct($value, ScriptInterface $script) |
|
| 33 | |||
| 34 | /** |
||
| 35 | * @return void |
||
| 36 | */ |
||
| 37 | public function __clone() |
||
| 41 | |||
| 42 | /** |
||
| 43 | * @see TransactionOutputInterface::getValue() |
||
| 44 | */ |
||
| 45 | 2377 | public function getValue() |
|
| 49 | |||
| 50 | /** |
||
| 51 | * @see TransactionOutputInterface::getScript() |
||
| 52 | */ |
||
| 53 | 2371 | public function getScript() |
|
| 57 | |||
| 58 | /** |
||
| 59 | * @param TransactionOutputInterface $output |
||
| 60 | * @return bool |
||
| 61 | */ |
||
| 62 | 6 | public function equals(TransactionOutputInterface $output) |
|
| 71 | |||
| 72 | /** |
||
| 73 | * @see \BitWasp\Bitcoin\SerializableInterface::getBuffer() |
||
| 74 | */ |
||
| 75 | 2317 | public function getBuffer() |
|
| 79 | } |
||
| 80 |