| 1 | <?php |
||
| 7 | class WitnessProgram |
||
| 8 | { |
||
| 9 | /** |
||
| 10 | * @var int |
||
| 11 | */ |
||
| 12 | private $version; |
||
| 13 | |||
| 14 | /** |
||
| 15 | * @var BufferInterface |
||
| 16 | */ |
||
| 17 | private $program; |
||
| 18 | |||
| 19 | /** |
||
| 20 | * WitnessProgram constructor. |
||
| 21 | * @param int $version |
||
| 22 | * @param BufferInterface $program |
||
| 23 | */ |
||
| 24 | public function __construct($version, BufferInterface $program) |
||
| 29 | |||
| 30 | /** |
||
| 31 | * @return int |
||
| 32 | */ |
||
| 33 | public function getVersion() |
||
| 37 | |||
| 38 | /** |
||
| 39 | * @return BufferInterface |
||
| 40 | */ |
||
| 41 | public function getProgram() |
||
| 45 | |||
| 46 | /** |
||
| 47 | * @return ScriptInterface |
||
| 48 | */ |
||
| 49 | public function getScript() |
||
| 56 | } |
||
| 57 |