Code Coverage |
||||||||||
Lines |
Functions and Methods |
Classes and Traits |
||||||||
| Total | |
100.00% |
1 / 1 |
|
100.00% |
1 / 1 |
CRAP | |
100.00% |
1 / 1 |
| RequiresPdfVersion | |
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\Pdf\Core; |
| 6 | |
| 7 | /** |
| 8 | * Declares the minimum PDF version required by a class or property. |
| 9 | * |
| 10 | * Applied at class level for features entirely new in a given version, |
| 11 | * or at property level for fields added to an existing class in a later version. |
| 12 | */ |
| 13 | #[\Attribute(\Attribute::TARGET_CLASS | \Attribute::TARGET_PROPERTY)] |
| 14 | final class RequiresPdfVersion |
| 15 | { |
| 16 | public function __construct( |
| 17 | public readonly PdfVersion $minimumVersion, |
| 18 | public readonly ?string $reason = null, |
| 19 | ) {} |
| 20 | } |