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
HashToken
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\Css\Token;
6
7/**
8 * `#main`, `#FF00AA`, `#-rule`, etc. The type-flag distinguishes id-shaped
9 * hashes (CSS Syntax 3 ยง4.3.1) from generic-shaped: id-shaped are valid for
10 * id selectors, generic hashes for things like color hex literals.
11 */
12final readonly class HashToken extends Token
13{
14    public function __construct(public string $value, public HashTokenType $type = HashTokenType::Unrestricted) {}
15}