Code Coverage |
||||||||||
Lines |
Functions and Methods |
Classes and Traits |
||||||||
| Total | |
100.00% |
1 / 1 |
|
100.00% |
1 / 1 |
CRAP | |
100.00% |
1 / 1 |
| ArcTo | |
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\Svg\Path; |
| 6 | |
| 7 | /** |
| 8 | * `A rx ry x-axis-rotation large-arc-flag sweep-flag x y` — elliptical arc. |
| 9 | * `xAxisRotation` is in degrees. The flags are SVG path-data "flag" tokens — |
| 10 | * single-digit `0` or `1` per SVG 2 §9.5.4, parsed into bools here. |
| 11 | */ |
| 12 | final class ArcTo implements PathCommand |
| 13 | { |
| 14 | public function __construct( |
| 15 | public readonly bool $absolute, |
| 16 | public readonly float $rx, |
| 17 | public readonly float $ry, |
| 18 | public readonly float $xAxisRotation, |
| 19 | public readonly bool $largeArc, |
| 20 | public readonly bool $sweep, |
| 21 | public readonly float $x, |
| 22 | public readonly float $y, |
| 23 | ) {} |
| 24 | } |