Passed
Pull Request — 1.x (#24)
by
unknown
12:37
created

VndError   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 16
Duplicated Lines 0 %

Importance

Changes 2
Bugs 0 Features 1
Metric Value
eloc 2
dl 0
loc 16
rs 10
c 2
b 0
f 1
wmc 1

1 Method

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 6 1
1
<?php
2
/**
3
 * This file is part of the Ray.WebFormModule package.
4
 *
5
 * @license http://opensource.org/licenses/MIT MIT
6
 */
7
8
namespace Ray\WebFormModule\Annotation;
9
10
use Attribute;
11
12
#[Attribute(Attribute::TARGET_METHOD)]
13
final class VndError
14
{
15
    /**
16
     * @param array<string, mixed> $href
17
     *
18
     * @see http://www.w3.org/TR/html5/links.html#link-type-help
19
     * @see http://tools.ietf.org/html/rfc6903#section-2
20
     * @see http://tools.ietf.org/html/rfc6892
21
     */
22
    public function __construct(
23
        public string $message,
24
        public array $href,
25
        public string|null $logref = null,
26
        public string|null $path = null
27
    ) {
28
    }
29
}
30