Code Coverage |
||||||||||
Lines |
Functions and Methods |
Classes and Traits |
||||||||
| Total | |
100.00% |
1 / 1 |
|
100.00% |
1 / 1 |
CRAP | |
100.00% |
1 / 1 |
| SolidColor | |
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\Value\Paint; |
| 6 | |
| 7 | use Phpdftk\Color\ColorInterface; |
| 8 | use Phpdftk\Svg\Value\Paint; |
| 9 | |
| 10 | /** |
| 11 | * A literal colour paint — wraps any `Phpdftk\Color\ColorInterface` |
| 12 | * implementation (`RgbColor`, `CmykColor`, `GrayColor`). The painter passes |
| 13 | * the wrapped colour to the PDF fill/stroke operator that matches its |
| 14 | * declared colour space. |
| 15 | */ |
| 16 | final class SolidColor extends Paint |
| 17 | { |
| 18 | public function __construct(public readonly ColorInterface $color) {} |
| 19 | } |