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

VndError::__construct()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 6
Code Lines 0

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
cc 1
eloc 0
nc 1
nop 4
dl 0
loc 6
rs 10
c 0
b 0
f 0
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