Code Coverage
 
Lines
Functions and Methods
Classes and Traits
Total
100.00% covered (success)
100.00%
1 / 1
100.00% covered (success)
100.00%
1 / 1
CRAP
100.00% covered (success)
100.00%
1 / 1
Token
100.00% covered (success)
100.00%
1 / 1
100.00% covered (success)
100.00%
1 / 1
1
100.00% covered (success)
100.00%
1 / 1
 __construct
100.00% covered (success)
100.00%
1 / 1
100.00% covered (success)
100.00%
1 / 1
1
1<?php
2
3declare(strict_types=1);
4
5namespace Phpdftk\Pdf\Reader\Tokenizer;
6
7/**
8 * A single lexical token from the PDF byte stream, carrying its type,
9 * string value, and byte offset within the source.
10 */
11final readonly class Token
12{
13    public function __construct(
14        public TokenType $type,
15        public string $value,
16        public int $offset,
17    ) {}
18}