Code Coverage
 
Lines
Functions and Methods
Classes and Traits
Total
100.00% covered (success)
100.00%
1 / 1
100.00% covered (success)
100.00%
1 / 1
CRAP
100.00% covered (success)
100.00%
1 / 1
ConformanceViolation
100.00% covered (success)
100.00%
1 / 1
100.00% covered (success)
100.00%
1 / 1
1
100.00% covered (success)
100.00%
1 / 1
 __construct
100.00% covered (success)
100.00%
1 / 1
100.00% covered (success)
100.00%
1 / 1
1
1<?php
2
3declare(strict_types=1);
4
5namespace Phpdftk\Pdf\Conformance\Result;
6
7/**
8 * A single conformance violation detected during validation.
9 */
10final readonly class ConformanceViolation
11{
12    public function __construct(
13        /** ISO clause reference (e.g. "6.3.4"). */
14        public string $clause,
15        /** Human-readable description of the violation. */
16        public string $message,
17        /** Severity level. */
18        public ViolationSeverity $severity = ViolationSeverity::Error,
19        /** Path to the offending object (e.g. "Page[0].Resources.Font[F1]"). */
20        public ?string $objectPath = null,
21    ) {}
22}