Code Coverage |
||||||||||
Lines |
Functions and Methods |
Classes and Traits |
||||||||
| Total | n/a |
0 / 0 |
n/a |
0 / 0 |
CRAP | n/a |
0 / 0 |
|||
| 1 | <?php |
| 2 | |
| 3 | declare(strict_types=1); |
| 4 | |
| 5 | namespace Phpdftk\Svg\Path; |
| 6 | |
| 7 | /** |
| 8 | * One step in a parsed SVG path-data attribute (SVG 2 §9.3.9). The set of |
| 9 | * implementations is closed — MoveTo / LineTo / HorizontalLineTo / |
| 10 | * VerticalLineTo / CurveTo / SmoothCurveTo / QuadraticCurveTo / |
| 11 | * SmoothQuadraticCurveTo / ArcTo / ClosePath. The painter pattern-matches |
| 12 | * on the concrete type to emit PDF operators. |
| 13 | * |
| 14 | * `$absolute = true` means the command used the uppercase letter (`M`, `L`, |
| 15 | * etc.); `false` means lowercase. For `ClosePath` (`Z`/`z`) the field is |
| 16 | * preserved for round-tripping but the spec defines no semantic difference. |
| 17 | */ |
| 18 | interface PathCommand |
| 19 | { |
| 20 | public bool $absolute { get; } |
| 21 | } |