Code Coverage |
||||||||||
Lines |
Functions and Methods |
Classes and Traits |
||||||||
| Total | n/a |
0 / 0 |
n/a |
0 / 0 |
CRAP | n/a |
0 / 0 |
|||
| Token | n/a |
0 / 0 |
n/a |
0 / 0 |
0 | n/a |
0 / 0 |
|||
| 1 | <?php |
| 2 | |
| 3 | declare(strict_types=1); |
| 4 | |
| 5 | namespace Phpdftk\Html\Tokenizer; |
| 6 | |
| 7 | /** |
| 8 | * Base type for tokens emitted by the WHATWG tokenizer. |
| 9 | * |
| 10 | * Tokens are mutable while the tokenizer is building them (start tag attribute |
| 11 | * lists accumulate character by character, for example). Once emitted to the |
| 12 | * tree-construction stage they are conceptually frozen, but the type system |
| 13 | * does not enforce immutability — keep the lifetime short and pass through. |
| 14 | */ |
| 15 | abstract class Token {} |