1 | <?php |
||
9 | final class OperationBuilder implements Objects\OperationFactory |
||
10 | { |
||
11 | use Properties\OptionalExtensions; |
||
12 | |||
13 | private $callbacks; |
||
14 | |||
15 | private $deprecated = false; |
||
16 | |||
17 | private $description; |
||
18 | |||
19 | private $externalDocs; |
||
20 | |||
21 | private $operationId; |
||
22 | |||
23 | private $parameters; |
||
24 | |||
25 | private $requestBody; |
||
26 | |||
27 | private $responses; |
||
28 | |||
29 | private $security; |
||
30 | |||
31 | private $servers; |
||
32 | |||
33 | private $summary; |
||
34 | |||
35 | private $tags = []; |
||
36 | |||
37 | public function createOperation(): Objects\Operation |
||
55 | |||
56 | public function setDeprecated(bool $deprecated): self |
||
62 | |||
63 | public function setDescription(string $description): self |
||
69 | |||
70 | public function setExternalDocs(Objects\ExternalDocumentationFactory $externalDocs): self |
||
76 | |||
77 | public function setOperationId(string $operationId): self |
||
83 | |||
84 | public function setParameters(Objects\ParameterCollectionFactory $parameters): self |
||
90 | |||
91 | public function setRequestBody(Objects\RequestBodyFactory $requestBody): self |
||
97 | |||
98 | public function setResponses(Objects\OperationResponsesFactory $responses): self |
||
104 | |||
105 | public function setSecurity(Objects\SecurityRequirementCollectionFactory $security): self |
||
111 | |||
112 | public function setServers(Objects\ServerCollectionFactory $servers): self |
||
118 | |||
119 | public function setSummary(string $summary): self |
||
125 | |||
126 | public function setTags(array $tags): self |
||
132 | |||
133 | private function getDescription(): ?string |
||
137 | |||
138 | private function getExternalDocs(): ?Objects\ExternalDocumentationFactory |
||
142 | |||
143 | private function getOperationId(): ?string |
||
147 | |||
148 | private function getParameters(): ?Objects\ParameterCollectionFactory |
||
152 | |||
153 | private function getRequestBody(): ?Objects\RequestBodyFactory |
||
157 | |||
158 | private function getResponses(): ?Objects\OperationResponsesFactory |
||
162 | |||
163 | private function getSecurity(): ?Objects\SecurityRequirementCollectionFactory |
||
167 | |||
168 | private function getServers(): ?Objects\ServerCollectionFactory |
||
172 | |||
173 | private function getSummary(): ?string |
||
177 | |||
178 | private function getTags(): array |
||
182 | |||
183 | private function isDeprecated(): bool |
||
187 | } |
||
188 |