Issues (104)

src/Spec/Response.php (4 issues)

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
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
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
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
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