Code Coverage
 
Lines
Functions and Methods
Classes and Traits
Total
n/a
0 / 0
n/a
0 / 0
CRAP
n/a
0 / 0
Value
n/a
0 / 0
n/a
0 / 0
0
n/a
0 / 0
 toCss
n/a
0 / 0
n/a
0 / 0
0
1<?php
2
3declare(strict_types=1);
4
5namespace Phpdftk\Css\Value;
6
7/**
8 * Base for typed CSS values per CSS Values and Units Module 4. Every value
9 * surfaced via the `ComputedStyle` accessors is one of these — no untyped
10 * strings or generic maps in the public surface.
11 *
12 * `toCss()` produces a string round-trippable through the tokenizer + value
13 * parser: serialize(parse(x)) === serialize(parse(serialize(parse(x)))).
14 */
15abstract readonly class Value
16{
17    abstract public function toCss(): string;
18}