Passed
Branch release/v2.0.0 (52e4c5)
by Anatoly
05:40 queued 01:36
created

Header::toArray()   A

Complexity

Conditions 4
Paths 8

Size

Total Lines 23
Code Lines 13

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 0
CRAP Score 20

Importance

Changes 1
Bugs 0 Features 0
Metric Value
eloc 13
c 1
b 0
f 0
dl 0
loc 23
ccs 0
cts 19
cp 0
rs 9.8333
cc 4
nc 8
nop 0
crap 20
1
<?php declare(strict_types=1);
2
3
/**
4
 * It's free open-source software released under the MIT License.
5
 *
6
 * @author Anatoly Fenric <[email protected]>
7
 * @copyright Copyright (c) 2018, Anatoly Fenric
8
 * @license https://github.com/sunrise-php/http-router/blob/master/LICENSE
9
 * @link https://github.com/sunrise-php/http-router
10
 */
11
12
namespace Sunrise\Http\Router\Annotation\OpenApi;
13
14
/**
15
 * @Annotation
16
 *
17
 * @Target({"ALL"})
18
 *
19
 * @link https://github.com/OAI/OpenAPI-Specification/blob/master/versions/3.0.2.md#header-object
20
 */
21
final class Header extends AbstractAnnotation implements HeaderInterface
22
{
23
24
    /**
25
     * @var string
26
     */
27
    public $description;
28
29
    /**
30
     * @var bool
31
     */
32
    public $required;
33
34
    /**
35
     * @var bool
36
     */
37
    public $deprecated;
38
39
    /**
40
     * @var bool
41
     */
42
    public $allowEmptyValue;
43
44
    /**
45
     * @var bool
46
     */
47
    public $allowReserved;
48
49
    /**
50
     * @var \Sunrise\Http\Router\Annotation\OpenApi\SchemaInterface
51
     */
52
    public $schema;
53
54
    /**
55
     * @var mixed
56
     */
57
    public $example;
58
59
    /**
60
     * @var array<\Sunrise\Http\Router\Annotation\OpenApi\ExampleInterface>
61
     */
62
    public $examples;
63
}
64