| 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|string $value |
||
| 28 | * @param ScriptInterface $script |
||
| 29 | */ |
||
| 30 | 483 | public function __construct($value, ScriptInterface $script) |
|
| 38 | |||
| 39 | /** |
||
| 40 | * @return void |
||
| 41 | */ |
||
| 42 | public function __clone() |
||
| 43 | { |
||
| 44 | $this->script = clone $this->script; |
||
| 45 | } |
||
| 46 | |||
| 47 | /** |
||
| 48 | * @see TransactionOutputInterface::getValue() |
||
| 49 | */ |
||
| 50 | 369 | public function getValue() |
|
| 54 | |||
| 55 | /** |
||
| 56 | * @see TransactionOutputInterface::getScript() |
||
| 57 | */ |
||
| 58 | 369 | public function getScript() |
|
| 62 | |||
| 63 | /** |
||
| 64 | * @see \BitWasp\Bitcoin\SerializableInterface::getBuffer() |
||
| 65 | */ |
||
| 66 | 297 | public function getBuffer() |
|
| 70 | } |
||
| 71 |