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\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
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
|
|||
| 28 | |||
| 29 | /** |
||
| 30 | * @var MediaTypeMap|null |
||
| 31 | */ |
||
| 32 | private $content; |
||
|
0 ignored issues
–
show
|
|||
| 33 | |||
| 34 | /** |
||
| 35 | * @var LinkObjectMap|null |
||
| 36 | */ |
||
| 37 | private $links; |
||
|
0 ignored issues
–
show
|
|||
| 38 | |||
| 39 | public function __construct(string $description) |
||
| 40 | { |
||
| 41 | $this->description = $description; |
||
| 42 | } |
||
| 43 | } |
||
| 44 |