Operation   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 70
Duplicated Lines 0 %

Importance

Changes 2
Bugs 1 Features 1
Metric Value
eloc 15
c 2
b 1
f 1
dl 0
loc 70
rs 10
wmc 1

1 Method

Rating   Name   Duplication   Size   Complexity  
A getResponses() 0 3 1
1
<?php
2
3
4
namespace Apie\OpenapiSchema\Spec;
5
6
use Apie\CompositeValueObjects\ValueObjects\StringList;
7
use Apie\OpenapiSchema\Concerns\CompositeValueObjectWithExtension;
8
use Apie\OpenapiSchema\Map\CallbackPathItemList;
9
use Apie\OpenapiSchema\Map\ParameterList;
10
use Apie\OpenapiSchema\Map\SecurityRequirementList;
11
use Apie\OpenapiSchema\Map\ServerList;
12
use Apie\ValueObjects\ValueObjectInterface;
13
14
/**
15
 * @see https://swagger.io/specification/#operation-object
16
 */
17
class Operation implements ValueObjectInterface
18
{
19
    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\Operation.
Loading history...
20
21
    /**
22
     * @var StringList|null
23
     */
24
    private $tags;
0 ignored issues
show
introduced by
The private property $tags is not used, and could be removed.
Loading history...
25
26
    /**
27
     * @var string|null
28
     */
29
    private $summary;
0 ignored issues
show
introduced by
The private property $summary is not used, and could be removed.
Loading history...
30
31
    /**
32
     * @var string|null
33
     */
34
    private $description;
0 ignored issues
show
introduced by
The private property $description is not used, and could be removed.
Loading history...
35
36
    /**
37
     * @var ExternalDocs|null
38
     */
39
    private $externalDocs;
0 ignored issues
show
introduced by
The private property $externalDocs is not used, and could be removed.
Loading history...
40
41
    /**
42
     * @var string|null
43
     */
44
    private $operationId;
0 ignored issues
show
introduced by
The private property $operationId is not used, and could be removed.
Loading history...
45
46
    /**
47
     * @var ParameterList|null
48
     */
49
    private $parameters;
0 ignored issues
show
introduced by
The private property $parameters is not used, and could be removed.
Loading history...
50
51
    /**
52
     * @var RequestBody|null
53
     */
54
    private $requestBody;
0 ignored issues
show
introduced by
The private property $requestBody is not used, and could be removed.
Loading history...
55
56
    /**
57
     * @var Responses|null
58
     */
59
    private $responses;
60
61
    /**
62
     * @var CallbackPathItemList|null
63
     */
64
    private $callbacks;
0 ignored issues
show
introduced by
The private property $callbacks is not used, and could be removed.
Loading history...
65
66
    /**
67
     * @var bool|null
68
     */
69
    private $deprecated;
0 ignored issues
show
introduced by
The private property $deprecated is not used, and could be removed.
Loading history...
70
71
    /**
72
     * @var SecurityRequirementList|null
73
     */
74
    private $security;
0 ignored issues
show
introduced by
The private property $security is not used, and could be removed.
Loading history...
75
76
    /**
77
     * @var ServerList|null
78
     */
79
    private $servers;
0 ignored issues
show
introduced by
The private property $servers is not used, and could be removed.
Loading history...
80
81
    /**
82
     * @return Responses|null
83
     */
84
    public function getResponses(): ?Responses
85
    {
86
        return $this->responses;
87
    }
88
}
89