Response::__construct()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
cc 1
eloc 1
c 1
b 0
f 0
nc 1
nop 1
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\HeaderMap;
8
use Apie\OpenapiSchema\Map\LinkObjectMap;
9
use Apie\OpenapiSchema\Map\MediaTypeMap;
10
use Apie\ValueObjects\ValueObjectInterface;
11
12
/**
13
 * @see https://swagger.io/specification/#response-object
14
 */
15
class Response implements ValueObjectInterface
16
{
17
    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\Response.
Loading history...
18
19
    /**
20
     * @var string
21
     */
22
    private $description;
23
24
    /**
25
     * @var HeaderMap|null
26
     */
27
    private $headers;
0 ignored issues
show
introduced by
The private property $headers is not used, and could be removed.
Loading history...
28
29
    /**
30
     * @var MediaTypeMap|null
31
     */
32
    private $content;
0 ignored issues
show
introduced by
The private property $content is not used, and could be removed.
Loading history...
33
34
    /**
35
     * @var LinkObjectMap|null
36
     */
37
    private $links;
0 ignored issues
show
introduced by
The private property $links is not used, and could be removed.
Loading history...
38
39
    public function __construct(string $description)
40
    {
41
        $this->description = $description;
42
    }
43
}
44