apie-lib /
openapi-schema
| 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
introduced
by
Loading history...
|
|||
| 18 | |||
| 19 | /** |
||
| 20 | * @var bool|null |
||
| 21 | */ |
||
| 22 | private $required; |
||
|
0 ignored issues
–
show
|
|||
| 23 | |||
| 24 | /** |
||
| 25 | * @var bool|null |
||
| 26 | */ |
||
| 27 | private $deprecated; |
||
|
0 ignored issues
–
show
|
|||
| 28 | |||
| 29 | /** |
||
| 30 | * @var bool|null |
||
| 31 | */ |
||
| 32 | private $allowEmptyValue; |
||
|
0 ignored issues
–
show
|
|||
| 33 | |||
| 34 | /** |
||
| 35 | * @var string|null |
||
| 36 | */ |
||
| 37 | private $style; |
||
|
0 ignored issues
–
show
|
|||
| 38 | |||
| 39 | /** |
||
| 40 | * @var bool|null |
||
| 41 | */ |
||
| 42 | private $explode; |
||
|
0 ignored issues
–
show
|
|||
| 43 | |||
| 44 | /** |
||
| 45 | * @var bool|null |
||
| 46 | */ |
||
| 47 | private $allowReserved; |
||
|
0 ignored issues
–
show
|
|||
| 48 | |||
| 49 | /** |
||
| 50 | * @var Schema|null |
||
| 51 | */ |
||
| 52 | private $schema; |
||
|
0 ignored issues
–
show
|
|||
| 53 | |||
| 54 | /** |
||
| 55 | * @var mixed|null |
||
| 56 | */ |
||
| 57 | private $example; |
||
|
0 ignored issues
–
show
|
|||
| 58 | |||
| 59 | /** |
||
| 60 | * @var ExampleMap|null |
||
| 61 | */ |
||
| 62 | private $examples; |
||
|
0 ignored issues
–
show
|
|||
| 63 | |||
| 64 | /** |
||
| 65 | * @var string|MediaType|null |
||
| 66 | */ |
||
| 67 | private $content; |
||
|
0 ignored issues
–
show
|
|||
| 68 | |||
| 69 | public function __construct(string $name, ParameterIn $in) |
||
| 70 | { |
||
| 71 | $this->name = $name; |
||
|
0 ignored issues
–
show
|
|||
| 72 | $this->in = $in; |
||
|
0 ignored issues
–
show
|
|||
| 73 | } |
||
| 74 | } |
||
| 75 |