Components::getHeaders()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
cc 1
eloc 1
c 0
b 0
f 0
nc 1
nop 0
dl 0
loc 3
rs 10
1
<?php
2
3
4
namespace Apie\OpenapiSchema\Spec;
5
6
use Apie\OpenapiSchema\Concerns\CompositeValueObjectWithExtension;
7
use Apie\OpenapiSchema\Map\CallbackMap;
8
use Apie\OpenapiSchema\Map\ExampleMap;
9
use Apie\OpenapiSchema\Map\HeaderMap;
10
use Apie\OpenapiSchema\Map\LinkObjectMap;
11
use Apie\OpenapiSchema\Map\ParameterMap;
12
use Apie\OpenapiSchema\Map\RequestBodyMap;
13
use Apie\OpenapiSchema\Map\ResponseMap;
14
use Apie\OpenapiSchema\Map\SchemaMap;
15
use Apie\OpenapiSchema\Map\SecuritySchemeMap;
16
use Apie\ValueObjects\ValueObjectInterface;
17
18
class Components implements ValueObjectInterface
19
{
20
    use CompositeValueObjectWithExtension;
0 ignored issues
show
Bug introduced by
The trait Apie\OpenapiSchema\Conce...alueObjectWithExtension requires the property $name which is not provided by Apie\OpenapiSchema\Spec\Components.
Loading history...
21
22
    /**
23
     * @var SchemaMap|null
24
     */
25
    private $schemas;
0 ignored issues
show
introduced by
The private property $schemas is not used, and could be removed.
Loading history...
26
27
    /**
28
     * @var ResponseMap|null
29
     */
30
    private $responses;
0 ignored issues
show
introduced by
The private property $responses is not used, and could be removed.
Loading history...
31
32
    /**
33
     * @var ParameterMap|null
34
     */
35
    private $parameters;
0 ignored issues
show
introduced by
The private property $parameters is not used, and could be removed.
Loading history...
36
37
    /**
38
     * @var ExampleMap|null
39
     */
40
    private $examples;
0 ignored issues
show
introduced by
The private property $examples is not used, and could be removed.
Loading history...
41
42
    /**
43
     * @var RequestBodyMap|null
44
     */
45
    private $requestBodies;
0 ignored issues
show
introduced by
The private property $requestBodies is not used, and could be removed.
Loading history...
46
47
    /**
48
     * @var HeaderMap|null
49
     */
50
    private $headers;
51
52
    /**
53
     * @var SecuritySchemeMap|null
54
     */
55
    private $securitySchemes;
0 ignored issues
show
introduced by
The private property $securitySchemes is not used, and could be removed.
Loading history...
56
57
    /**
58
     * @var LinkObjectMap|null
59
     */
60
    private $links;
0 ignored issues
show
introduced by
The private property $links is not used, and could be removed.
Loading history...
61
62
    /**
63
     * @var CallbackMap|null
64
     */
65
    private $callbacks;
0 ignored issues
show
introduced by
The private property $callbacks is not used, and could be removed.
Loading history...
66
67
    /**
68
     * @return HeaderMap|null
69
     */
70
    public function getHeaders(): ?HeaderMap
71
    {
72
        return $this->headers;
73
    }
74
}
75