Code Coverage |
||||||||||
Lines |
Functions and Methods |
Classes and Traits |
||||||||
| Total | |
100.00% |
1 / 1 |
|
100.00% |
1 / 1 |
CRAP | |
100.00% |
1 / 1 |
| NumberToken | |
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\Css\Token; |
| 6 | |
| 7 | /** |
| 8 | * A numeric literal with an `Integer`/`Number` type flag per CSS Syntax 3 |
| 9 | * ยง4.3.3. Integers parse without a fractional part; numbers may include |
| 10 | * decimals or an exponent. |
| 11 | */ |
| 12 | final readonly class NumberToken extends Token |
| 13 | { |
| 14 | public function __construct(public float $value, public NumberTokenType $type) {} |
| 15 | } |