Contact::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 Contact
12
{
13
    /**
14
     * The identifying name of the contact person/organization.
15
     * @var string
16
     */
17
    public $name;
18
19
    /**
20
     * The URL pointing to the contact information. MUST be in the format of a URL.
21
     * @var string
22
     */
23
    public $url;
24
25
    /**
26
     * The email address of the contact person/organization. MUST be in the format of an email address.
27
     * @var string
28
     */
29
    public $email;
30
31
    protected function getRequiredParameters(): array
32
    {
33
        return [];
34
    }
35
}
36