apie-lib /
openapi-schema
| 1 | <?php |
||
| 2 | |||
| 3 | |||
| 4 | namespace Apie\OpenapiSchema\Spec; |
||
| 5 | |||
| 6 | use Apie\CompositeValueObjects\ValueObjects\StringList; |
||
| 7 | use Apie\OpenapiSchema\Concerns\CompositeValueObjectWithExtension; |
||
| 8 | use Apie\OpenapiSchema\Map\CallbackPathItemList; |
||
| 9 | use Apie\OpenapiSchema\Map\ParameterList; |
||
| 10 | use Apie\OpenapiSchema\Map\SecurityRequirementList; |
||
| 11 | use Apie\OpenapiSchema\Map\ServerList; |
||
| 12 | use Apie\ValueObjects\ValueObjectInterface; |
||
| 13 | |||
| 14 | /** |
||
| 15 | * @see https://swagger.io/specification/#operation-object |
||
| 16 | */ |
||
| 17 | class Operation implements ValueObjectInterface |
||
| 18 | { |
||
| 19 | use CompositeValueObjectWithExtension; |
||
|
0 ignored issues
–
show
Bug
introduced
by
Loading history...
|
|||
| 20 | |||
| 21 | /** |
||
| 22 | * @var StringList|null |
||
| 23 | */ |
||
| 24 | private $tags; |
||
|
0 ignored issues
–
show
|
|||
| 25 | |||
| 26 | /** |
||
| 27 | * @var string|null |
||
| 28 | */ |
||
| 29 | private $summary; |
||
|
0 ignored issues
–
show
|
|||
| 30 | |||
| 31 | /** |
||
| 32 | * @var string|null |
||
| 33 | */ |
||
| 34 | private $description; |
||
|
0 ignored issues
–
show
|
|||
| 35 | |||
| 36 | /** |
||
| 37 | * @var ExternalDocs|null |
||
| 38 | */ |
||
| 39 | private $externalDocs; |
||
|
0 ignored issues
–
show
|
|||
| 40 | |||
| 41 | /** |
||
| 42 | * @var string|null |
||
| 43 | */ |
||
| 44 | private $operationId; |
||
|
0 ignored issues
–
show
|
|||
| 45 | |||
| 46 | /** |
||
| 47 | * @var ParameterList|null |
||
| 48 | */ |
||
| 49 | private $parameters; |
||
|
0 ignored issues
–
show
|
|||
| 50 | |||
| 51 | /** |
||
| 52 | * @var RequestBody|null |
||
| 53 | */ |
||
| 54 | private $requestBody; |
||
|
0 ignored issues
–
show
|
|||
| 55 | |||
| 56 | /** |
||
| 57 | * @var Responses|null |
||
| 58 | */ |
||
| 59 | private $responses; |
||
| 60 | |||
| 61 | /** |
||
| 62 | * @var CallbackPathItemList|null |
||
| 63 | */ |
||
| 64 | private $callbacks; |
||
|
0 ignored issues
–
show
|
|||
| 65 | |||
| 66 | /** |
||
| 67 | * @var bool|null |
||
| 68 | */ |
||
| 69 | private $deprecated; |
||
|
0 ignored issues
–
show
|
|||
| 70 | |||
| 71 | /** |
||
| 72 | * @var SecurityRequirementList|null |
||
| 73 | */ |
||
| 74 | private $security; |
||
|
0 ignored issues
–
show
|
|||
| 75 | |||
| 76 | /** |
||
| 77 | * @var ServerList|null |
||
| 78 | */ |
||
| 79 | private $servers; |
||
|
0 ignored issues
–
show
|
|||
| 80 | |||
| 81 | /** |
||
| 82 | * @return Responses|null |
||
| 83 | */ |
||
| 84 | public function getResponses(): ?Responses |
||
| 85 | { |
||
| 86 | return $this->responses; |
||
| 87 | } |
||
| 88 | } |
||
| 89 |