JsonSchema   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 11
Duplicated Lines 0 %

Importance

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

1 Method

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 8 1
1
<?php
2
3
declare(strict_types=1);
4
5
namespace BEAR\Resource\Annotation;
6
7
use Attribute;
8
9
/** @codeCoverageIgnore */
10
#[Attribute(Attribute::TARGET_METHOD)]
11
final class JsonSchema
12
{
13
    public function __construct(
14
        public string $schema = '',
15
        /** Json schema body key name */
16
        public string $key = '',
17
        /** Input parameter validation schema */
18
        public string $params = '',
19
        public string $target = 'body',
20
    ) {
21
    }
22
}
23