1 | <?php |
||
9 | final class OpenApiBuilder implements Objects\OpenApiFactory |
||
10 | { |
||
11 | use Properties\OptionalExtensions; |
||
12 | |||
13 | private $components; |
||
14 | |||
15 | private $externalDocs; |
||
16 | |||
17 | private $info; |
||
18 | |||
19 | private $openapi; |
||
20 | |||
21 | private $paths; |
||
22 | |||
23 | private $security; |
||
24 | |||
25 | private $servers; |
||
26 | |||
27 | private $tags; |
||
28 | |||
29 | 2 | public function createOpenApi(): Objects\OpenApi |
|
43 | |||
44 | 1 | public function setComponents(Objects\ComponentsFactory $components): self |
|
50 | |||
51 | 1 | public function setExternalDocs(Objects\ExternalDocumentationFactory $externalDocs): self |
|
57 | |||
58 | 2 | public function setInfo(Objects\InfoFactory $infoFactory): self |
|
64 | |||
65 | 2 | public function setOpenapi(string $openapi): self |
|
71 | |||
72 | 2 | public function setPaths(Objects\PathsFactory $pathsFactory): self |
|
78 | |||
79 | 1 | public function setSecurity(Objects\SecurityRequirementCollectionFactory $security): self |
|
85 | |||
86 | 1 | public function setServers(Objects\ServerCollectionFactory $servers): self |
|
92 | |||
93 | 1 | public function setTags(Objects\TagCollectionFactory $tags): self |
|
99 | |||
100 | 2 | private function getComponents(): ?Objects\ComponentsFactory |
|
104 | |||
105 | 2 | private function getExternalDocs(): ?Objects\ExternalDocumentationFactory |
|
109 | |||
110 | 2 | private function getInfo(): Objects\InfoFactory |
|
114 | |||
115 | 2 | private function getOpenapi(): string |
|
119 | |||
120 | 2 | private function getPaths(): Objects\PathsFactory |
|
124 | |||
125 | 2 | private function getSecurity(): ?Objects\SecurityRequirementCollectionFactory |
|
129 | |||
130 | 2 | private function getServers(): ?Objects\ServerCollectionFactory |
|
134 | |||
135 | 2 | private function getTags(): ?Objects\TagCollectionFactory |
|
139 | } |
||
140 |