| 1 | <?php |
||
| 10 | class TransactionOutput extends Serializable implements TransactionOutputInterface |
||
| 11 | { |
||
| 12 | use FunctionAliasArrayAccess; |
||
| 13 | |||
| 14 | /** |
||
| 15 | * @var string|int |
||
| 16 | */ |
||
| 17 | private $value; |
||
| 18 | |||
| 19 | /** |
||
| 20 | * @var ScriptInterface |
||
| 21 | */ |
||
| 22 | private $script; |
||
| 23 | |||
| 24 | /** |
||
| 25 | * Initialize class |
||
| 26 | * |
||
| 27 | * @param int $value |
||
| 28 | * @param ScriptInterface $script |
||
| 29 | */ |
||
| 30 | 537 | public function __construct($value, ScriptInterface $script) |
|
| 39 | |||
| 40 | /** |
||
| 41 | * @return void |
||
| 42 | */ |
||
| 43 | public function __clone() |
||
| 47 | |||
| 48 | /** |
||
| 49 | * @see TransactionOutputInterface::getValue() |
||
| 50 | */ |
||
| 51 | 423 | public function getValue() |
|
| 55 | |||
| 56 | /** |
||
| 57 | * @see TransactionOutputInterface::getScript() |
||
| 58 | */ |
||
| 59 | 423 | public function getScript() |
|
| 63 | |||
| 64 | /** |
||
| 65 | * @see \BitWasp\Bitcoin\SerializableInterface::getBuffer() |
||
| 66 | */ |
||
| 67 | 351 | public function getBuffer() |
|
| 71 | } |
||
| 72 |