JsonSchema   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 12
Duplicated Lines 0 %

Importance

Changes 0
Metric Value
eloc 2
dl 0
loc 12
rs 10
c 0
b 0
f 0
wmc 1

1 Method

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 9 1
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