| 1 | <?php |
||
| 10 | abstract class VersionedHeader extends Header |
||
| 11 | { |
||
| 12 | /** |
||
| 13 | * The header version. |
||
| 14 | * |
||
| 15 | * @var int |
||
| 16 | */ |
||
| 17 | protected $headerVersion; |
||
| 18 | |||
| 19 | /** |
||
| 20 | * The header size. |
||
| 21 | * |
||
| 22 | * @var int |
||
| 23 | */ |
||
| 24 | protected $headerLength; |
||
| 25 | |||
| 26 | /** |
||
| 27 | * Initializes the instance. |
||
| 28 | * |
||
| 29 | * @param \CHMLib\Reader\Reader $reader The reader that provides the data. |
||
| 30 | * |
||
| 31 | * @throws \Exception Throws an Exception in case of errors. |
||
| 32 | */ |
||
| 33 | 4 | public function __construct(Reader $reader) |
|
| 39 | |||
| 40 | /** |
||
| 41 | * Get the header version. |
||
| 42 | * |
||
| 43 | * @return int |
||
| 44 | */ |
||
| 45 | public function getHeaderVersion() |
||
| 49 | |||
| 50 | /** |
||
| 51 | * Get the header size. |
||
| 52 | * |
||
| 53 | * @return int |
||
| 54 | */ |
||
| 55 | 4 | public function getHeaderLength() |
|
| 59 | } |
||
| 60 |