License   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 17
Duplicated Lines 0 %

Test Coverage

Coverage 0%

Importance

Changes 0
Metric Value
wmc 1
eloc 4
dl 0
loc 17
c 0
b 0
f 0
ccs 0
cts 3
cp 0
rs 10

1 Method

Rating   Name   Duplication   Size   Complexity  
A getRequiredParameters() 0 3 1
1
<?php declare(strict_types=1);
2
3
namespace FatCode\OpenApi\Annotation\Info;
4
5
use FatCode\Annotation\Target;
6
7
/**
8
 * @Annotation
9
 * @Target(Target::TARGET_ANNOTATION)
10
 */
11
class License
12
{
13
    /**
14
     * The license name used for the API.
15
     * @var string
16
     */
17
    public $name;
18
19
    /**
20
     * A URL to the license used for the API. MUST be in the format of a URL.
21
     * @var string
22
     */
23
    public $url;
24
25
    protected function getRequiredParameters(): array
26
    {
27
        return ['name'];
28
    }
29
}
30