1 | <?php |
||
12 | class PMGI extends Header |
||
13 | { |
||
14 | /** |
||
15 | * The length of the free space and/or the QuickRef area at the end of the directory chunk. |
||
16 | * |
||
17 | * @var int |
||
18 | */ |
||
19 | protected $freeSpace; |
||
20 | |||
21 | /** |
||
22 | * Initializes the instance. |
||
23 | * |
||
24 | * @param Reader $reader The reader that provides the data. |
||
25 | * |
||
26 | * @throws \CHMLib\Exception\UnexpectedHeaderException Throws an UnexpectedHeaderException if the header signature is not valid. |
||
27 | * @throws \Exception Throws an Exception in case of errors. |
||
28 | */ |
||
29 | public function __construct(Reader $reader) |
||
37 | |||
38 | /** |
||
39 | * Get the length of the free space and/or the QuickRef area at the end of the directory chunk. |
||
40 | * |
||
41 | * @return int |
||
42 | */ |
||
43 | public function getFreeSpace() |
||
47 | } |
||
48 |