PathItem::getGet()   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\ParameterList;
8
use Apie\OpenapiSchema\Map\ServerList;
9
use Apie\ValueObjects\ValueObjectInterface;
10
11
class PathItem implements ValueObjectInterface
12
{
13
    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\PathItem.
Loading history...
14
15
    /**
16
     * @var string|null
17
     */
18
    private $summary;
0 ignored issues
show
introduced by
The private property $summary is not used, and could be removed.
Loading history...
19
20
    /**
21
     * @var string|null
22
     */
23
    private $description;
0 ignored issues
show
introduced by
The private property $description is not used, and could be removed.
Loading history...
24
25
    /**
26
     * @var Operation|null
27
     */
28
    private $get;
29
30
    /**
31
     * @var Operation|null
32
     */
33
    private $put;
0 ignored issues
show
introduced by
The private property $put is not used, and could be removed.
Loading history...
34
35
    /**
36
     * @var Operation|null
37
     */
38
    private $post;
0 ignored issues
show
introduced by
The private property $post is not used, and could be removed.
Loading history...
39
40
    /**
41
     * @var Operation|null
42
     */
43
    private $delete;
0 ignored issues
show
introduced by
The private property $delete is not used, and could be removed.
Loading history...
44
45
    /**
46
     * @var Operation|null
47
     */
48
    private $options;
0 ignored issues
show
introduced by
The private property $options is not used, and could be removed.
Loading history...
49
50
    /**
51
     * @var Operation|null
52
     */
53
    private $head;
0 ignored issues
show
introduced by
The private property $head is not used, and could be removed.
Loading history...
54
55
    /**
56
     * @var Operation|null
57
     */
58
    private $patch;
0 ignored issues
show
introduced by
The private property $patch is not used, and could be removed.
Loading history...
59
60
    /**
61
     * @var Operation|null
62
     */
63
    private $trace;
0 ignored issues
show
introduced by
The private property $trace is not used, and could be removed.
Loading history...
64
65
    /**
66
     * @var ServerList|null
67
     */
68
    private $servers;
0 ignored issues
show
introduced by
The private property $servers is not used, and could be removed.
Loading history...
69
70
    /**
71
     * @var ParameterList|null
72
     */
73
    private $parameters;
0 ignored issues
show
introduced by
The private property $parameters is not used, and could be removed.
Loading history...
74
75
    /**
76
     * @return Operation|null
77
     */
78
    public function getGet(): ?Operation
79
    {
80
        return $this->get;
81
    }
82
}
83