License::getRequiredParameters()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 0
CRAP Score 2

Importance

Changes 0
Metric Value
eloc 1
dl 0
loc 3
c 0
b 0
f 0
ccs 0
cts 3
cp 0
rs 10
cc 1
nc 1
nop 0
crap 2
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