Code Coverage |
||||||||||
Lines |
Functions and Methods |
Classes and Traits |
||||||||
| Total | |
100.00% |
1 / 1 |
|
100.00% |
1 / 1 |
CRAP | |
100.00% |
1 / 1 |
| CurveTo | |
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 | /** `C x1 y1 x2 y2 x y` — cubic Bézier from current point to (x, y). */ |
| 8 | final class CurveTo implements PathCommand |
| 9 | { |
| 10 | public function __construct( |
| 11 | public readonly bool $absolute, |
| 12 | public readonly float $x1, |
| 13 | public readonly float $y1, |
| 14 | public readonly float $x2, |
| 15 | public readonly float $y2, |
| 16 | public readonly float $x, |
| 17 | public readonly float $y, |
| 18 | ) {} |
| 19 | } |