1 | <?php |
||
12 | class PMGL 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 | * The chunk number of the previous listing chunk when reading directory in sequence (-1 if this is the first listing chunk). |
||
23 | * |
||
24 | * @var int |
||
25 | */ |
||
26 | protected $previousChunk; |
||
27 | |||
28 | /** |
||
29 | * The chunk number of the next listing chunk when reading directory in sequence (-1 if this is the last listing chunk). |
||
30 | * |
||
31 | * @var int |
||
32 | */ |
||
33 | protected $nextChunk; |
||
34 | |||
35 | /** |
||
36 | * Initializes the instance. |
||
37 | * |
||
38 | * @param \CHMLib\Reader\Reader $reader The reader that provides the data. |
||
39 | * |
||
40 | * @throws \CHMLib\Exception\UnexpectedHeaderException Throws an UnexpectedHeaderException if the header signature is not valid. |
||
41 | * @throws \Exception Throws an Exception in case of errors. |
||
42 | */ |
||
43 | 4 | public function __construct(Reader $reader) |
|
54 | |||
55 | /** |
||
56 | * Get the length of the free space and/or the QuickRef area at the end of the directory chunk. |
||
57 | * |
||
58 | * @return int |
||
59 | */ |
||
60 | 4 | public function getFreeSpace() |
|
64 | |||
65 | /** |
||
66 | * Get the chunk number of the previous listing chunk when reading directory in sequence (-1 if this is the first listing chunk). |
||
67 | * |
||
68 | * @return int |
||
69 | */ |
||
70 | public function getPreviousChunk() |
||
74 | |||
75 | /** |
||
76 | * Get the chunk number of the next listing chunk when reading directory in sequence (-1 if this is the last listing chunk). |
||
77 | * |
||
78 | * @return int |
||
79 | */ |
||
80 | public function getNextChunk() |
||
84 | } |
||
85 |