Code Coverage |
||||||||||
Lines |
Functions and Methods |
Classes and Traits |
||||||||
| Total | n/a |
0 / 0 |
n/a |
0 / 0 |
CRAP | n/a |
0 / 0 |
|||
| CalcExpression | 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 | |
| 3 | declare(strict_types=1); |
| 4 | |
| 5 | namespace Phpdftk\Css\Value; |
| 6 | |
| 7 | /** |
| 8 | * AST node inside a calc() / min() / max() / clamp() / sin() / etc. tree. |
| 9 | * |
| 10 | * Three concrete subclasses: |
| 11 | * - {@see CalcLeaf}: a primitive value (Number, Length, Percentage, ...) |
| 12 | * - {@see CalcBinary}: an addition / subtraction / multiplication / division |
| 13 | * of two sub-expressions |
| 14 | * - {@see CalcFunc}: a named math function applied to one or more arguments |
| 15 | * (min, max, clamp, sin, ...) |
| 16 | */ |
| 17 | abstract readonly class CalcExpression |
| 18 | { |
| 19 | abstract public function toCss(): string; |
| 20 | } |