1 | <?php |
||
9 | class TransactionOutput extends Serializable implements TransactionOutputInterface |
||
10 | { |
||
11 | |||
12 | /** |
||
13 | * @var 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 | 1336 | public function __construct($value, ScriptInterface $script) |
|
36 | |||
37 | /** |
||
38 | * {@inheritdoc} |
||
39 | * @see TransactionOutputInterface::getValue() |
||
40 | */ |
||
41 | 1392 | public function getValue() |
|
45 | |||
46 | /** |
||
47 | * {@inheritdoc} |
||
48 | * @see TransactionOutputInterface::getScript() |
||
49 | */ |
||
50 | 1388 | public function getScript() |
|
54 | |||
55 | /** |
||
56 | * {@inheritdoc} |
||
57 | * @see TransactionOutputInterface::equals() |
||
58 | */ |
||
59 | 16 | public function equals(TransactionOutputInterface $output) |
|
68 | |||
69 | /** |
||
70 | * {@inheritdoc} |
||
71 | * @see \BitWasp\Bitcoin\SerializableInterface::getBuffer() |
||
72 | */ |
||
73 | 2 | public function getBuffer() |
|
77 | } |
||
78 |