Code Coverage |
||||||||||
Lines |
Functions and Methods |
Classes and Traits |
||||||||
| Total | |
100.00% |
1 / 1 |
|
100.00% |
1 / 1 |
CRAP | |
100.00% |
1 / 1 |
| XrefEntry | |
100.00% |
1 / 1 |
|
100.00% |
1 / 1 |
1 | |
100.00% |
1 / 1 |
| __construct | |
100.00% |
1 / 1 |
|
100.00% |
1 / 1 |
1 | |||
| 1 | <?php |
| 2 | |
| 3 | declare(strict_types=1); |
| 4 | |
| 5 | namespace Phpdftk\Pdf\Reader; |
| 6 | |
| 7 | /** |
| 8 | * A single entry from the cross-reference table. |
| 9 | * |
| 10 | * @param int $type 0 = free, 1 = in-use, 2 = compressed (in ObjStm) |
| 11 | * @param int $offset byte offset (type 1) or containing ObjStm number (type 2) |
| 12 | * @param int $generation generation number (type 0/1) or index within ObjStm (type 2) |
| 13 | */ |
| 14 | final readonly class XrefEntry |
| 15 | { |
| 16 | public const TYPE_FREE = 0; |
| 17 | public const TYPE_IN_USE = 1; |
| 18 | public const TYPE_COMPRESSED = 2; |
| 19 | |
| 20 | public function __construct( |
| 21 | public int $type, |
| 22 | public int $offset, |
| 23 | public int $generation, |
| 24 | ) {} |
| 25 | } |