Code Coverage |
||||||||||
Lines |
Functions and Methods |
Classes and Traits |
||||||||
| Total | n/a |
0 / 0 |
n/a |
0 / 0 |
CRAP | n/a |
0 / 0 |
|||
| WarningSeverity | n/a |
0 / 0 |
n/a |
0 / 0 |
0 | n/a |
0 / 0 |
|||
| 1 | <?php |
| 2 | |
| 3 | declare(strict_types=1); |
| 4 | |
| 5 | namespace Phpdftk\HtmlToPdf; |
| 6 | |
| 7 | /** |
| 8 | * Severity tier for renderer {@see Warning}s. |
| 9 | * |
| 10 | * - `Info` — informational; the renderer made a guess but the output is |
| 11 | * probably still correct (e.g. fell back to default font). |
| 12 | * - `Warning` — visual gap likely (unsupported property silently dropped). |
| 13 | * - `Error` — content lost or definitely-wrong output; promotes to throw |
| 14 | * under {@see RendererOptions::$strict}. |
| 15 | */ |
| 16 | enum WarningSeverity: string |
| 17 | { |
| 18 | case Info = 'info'; |
| 19 | case Warning = 'warning'; |
| 20 | case Error = 'error'; |
| 21 | } |