JsonSchema::__construct()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 9
Code Lines 0

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
cc 1
eloc 0
nc 1
nop 4
dl 0
loc 9
rs 10
c 0
b 0
f 0
1
<?php
2
3
declare(strict_types=1);
4
5
namespace BEAR\Resource\Annotation;
6
7
use Attribute;
8
use Doctrine\Common\Annotations\Annotation\NamedArgumentConstructor;
9
10
/**
11
 * @Annotation
12
 * @Target("METHOD")
13
 * @NamedArgumentConstructor
14
 * @codeCoverageIgnore
15
 */
16
#[Attribute(Attribute::TARGET_METHOD)]
17
final class JsonSchema
18
{
19
    public function __construct(
20
        public string $schema = '',
21
        /** Json schema body key name */
22
        public string $key = '',
23
        /** Input parameter validation schema */
24
        public string $params = '',
25
        /** @Enum({"view", "body"}) */
26
        public string $target = 'body',
27
    ) {
28
    }
29
}
30