JsonSchema::__construct()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 8
Code Lines 0

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
cc 1
eloc 0
nc 1
nop 4
dl 0
loc 8
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
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