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
GraphViolation
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 LambdaTwelve\OneRecord\Model;
6
7/**
8 * One way a graph fails the ontology, with the property and subject it
9 * concerns so a caller can point at them in an error document.
10 */
11final readonly class GraphViolation
12{
13    public function __construct(
14        public string $message,
15        public ?string $property,
16        public ?string $subject,
17    ) {}
18}