Code Coverage |
||||||||||
Lines |
Functions and Methods |
Classes and Traits |
||||||||
| Total | |
100.00% |
1 / 1 |
|
100.00% |
1 / 1 |
CRAP | |
100.00% |
1 / 1 |
| SmoothCurveTo | |
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 | * `S x2 y2 x y` — smooth cubic Bézier. The first control point is the |
| 9 | * reflection of the previous command's second control point; the painter |
| 10 | * reconstructs it. |
| 11 | */ |
| 12 | final class SmoothCurveTo implements PathCommand |
| 13 | { |
| 14 | public function __construct( |
| 15 | public readonly bool $absolute, |
| 16 | public readonly float $x2, |
| 17 | public readonly float $y2, |
| 18 | public readonly float $x, |
| 19 | public readonly float $y, |
| 20 | ) {} |
| 21 | } |