Issues (104)

src/Spec/Header.php (13 issues)

1
<?php
2
3
4
namespace Apie\OpenapiSchema\Spec;
5
6
use Apie\OpenapiSchema\Concerns\CompositeValueObjectWithExtension;
7
use Apie\OpenapiSchema\Map\ExampleMap;
8
use Apie\OpenapiSchema\ValueObjects\ParameterIn;
9
use Apie\ValueObjects\ValueObjectInterface;
10
11
class Header implements ValueObjectInterface
12
{
13
    use CompositeValueObjectWithExtension;
14
    /**
15
     * @var string|null
16
     */
17
    private $description;
0 ignored issues
show
The private property $description is not used, and could be removed.
Loading history...
18
19
    /**
20
     * @var bool|null
21
     */
22
    private $required;
0 ignored issues
show
The private property $required is not used, and could be removed.
Loading history...
23
24
    /**
25
     * @var bool|null
26
     */
27
    private $deprecated;
0 ignored issues
show
The private property $deprecated is not used, and could be removed.
Loading history...
28
29
    /**
30
     * @var bool|null
31
     */
32
    private $allowEmptyValue;
0 ignored issues
show
The private property $allowEmptyValue is not used, and could be removed.
Loading history...
33
34
    /**
35
     * @var string|null
36
     */
37
    private $style;
0 ignored issues
show
The private property $style is not used, and could be removed.
Loading history...
38
39
    /**
40
     * @var bool|null
41
     */
42
    private $explode;
0 ignored issues
show
The private property $explode is not used, and could be removed.
Loading history...
43
44
    /**
45
     * @var bool|null
46
     */
47
    private $allowReserved;
0 ignored issues
show
The private property $allowReserved is not used, and could be removed.
Loading history...
48
49
    /**
50
     * @var Schema|null
51
     */
52
    private $schema;
0 ignored issues
show
The private property $schema is not used, and could be removed.
Loading history...
53
54
    /**
55
     * @var mixed|null
56
     */
57
    private $example;
0 ignored issues
show
The private property $example is not used, and could be removed.
Loading history...
58
59
    /**
60
     * @var ExampleMap|null
61
     */
62
    private $examples;
0 ignored issues
show
The private property $examples is not used, and could be removed.
Loading history...
63
64
    /**
65
     * @var string|MediaType|null
66
     */
67
    private $content;
0 ignored issues
show
The private property $content is not used, and could be removed.
Loading history...
68
69
    public function __construct(string $name, ParameterIn $in)
70
    {
71
        $this->name = $name;
0 ignored issues
show
Bug Best Practice introduced by
The property name does not exist. Although not strictly required by PHP, it is generally a best practice to declare properties explicitly.
Loading history...
72
        $this->in = $in;
0 ignored issues
show
Bug Best Practice introduced by
The property in does not exist. Although not strictly required by PHP, it is generally a best practice to declare properties explicitly.
Loading history...
73
    }
74
}
75