1 | <?php |
||
7 | class WitnessProgram extends Script |
||
8 | { |
||
9 | /** |
||
10 | * @var int |
||
11 | */ |
||
12 | private $version; |
||
13 | |||
14 | /** |
||
15 | * @var ScriptInterface |
||
16 | */ |
||
17 | private $program; |
||
18 | |||
19 | /** |
||
20 | * WitnessProgram constructor. |
||
21 | * @param int $version |
||
22 | * @param ScriptInterface $program |
||
23 | * @param Opcodes $opcodes |
||
24 | */ |
||
25 | public function __construct($version, ScriptInterface $program, Opcodes $opcodes = null) |
||
44 | |||
45 | /** |
||
46 | * @return int |
||
47 | */ |
||
48 | public function getVersion() |
||
52 | |||
53 | /** |
||
54 | * @return ScriptInterface |
||
55 | */ |
||
56 | public function getProgram() |
||
60 | } |
||
61 |