Code Coverage |
||||||||||
Lines |
Functions and Methods |
Classes and Traits |
||||||||
| Total | |
100.00% |
1 / 1 |
|
100.00% |
1 / 1 |
CRAP | |
100.00% |
1 / 1 |
| QuadraticCurveTo | |
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 | /** `Q x1 y1 x y` — quadratic Bézier with a single control point. */ |
| 8 | final class QuadraticCurveTo 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 $x, |
| 15 | public readonly float $y, |
| 16 | ) {} |
| 17 | } |