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
ErrorDetail
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\Api;
6
7/**
8 * api:ErrorDetail: where and why. For synchronous HTTP errors the code is the
9 * status code; for action requests it may be a business code (Cargo-XML).
10 */
11final readonly class ErrorDetail
12{
13    public function __construct(
14        public ?string $code = null,
15        public ?string $message = null,
16        public ?string $property = null,
17        public ?string $resource = null,
18    ) {}
19}