1 | <?php |
||
10 | final class PathBuilder implements Objects\PathFactory |
||
11 | { |
||
12 | use Properties\OptionalExtensions; |
||
13 | |||
14 | private $description; |
||
15 | |||
16 | private $operations = [ |
||
17 | Objects\Path::METHOD_GET => null, |
||
18 | Objects\Path::METHOD_PUT => null, |
||
19 | Objects\Path::METHOD_POST => null, |
||
20 | Objects\Path::METHOD_DELETE => null, |
||
21 | Objects\Path::METHOD_PATCH => null, |
||
22 | Objects\Path::METHOD_OPTIONS => null, |
||
23 | Objects\Path::METHOD_HEAD => null, |
||
24 | Objects\Path::METHOD_TRACE => null, |
||
25 | ]; |
||
26 | |||
27 | private $parameters; |
||
28 | |||
29 | private $reference; |
||
30 | |||
31 | private $servers; |
||
32 | |||
33 | private $summary; |
||
34 | |||
35 | public function createPath(): Objects\Path |
||
70 | |||
71 | public function setDescription(string $description): self |
||
77 | |||
78 | public function setOperation(string $method, Objects\OperationFactory $operation): self |
||
90 | |||
91 | public function setParameters(Objects\ParameterCollectionFactory $parameters): self |
||
97 | |||
98 | public function setReference(Objects\ReferenceFactory $reference): self |
||
104 | |||
105 | public function setServers(Objects\ServerCollectionFactory $servers): self |
||
111 | |||
112 | public function setSummary(string $summary): self |
||
118 | |||
119 | private function getDescription(): ?string |
||
123 | |||
124 | private function getOperation(string $method): ?Objects\OperationFactory |
||
128 | |||
129 | private function getParameters(): ?Objects\ParameterCollectionFactory |
||
133 | |||
134 | private function getReference(): ?Objects\ReferenceFactory |
||
138 | |||
139 | private function getServers(): ?Objects\ServerCollectionFactory |
||
143 | |||
144 | private function getSummary(): ?string |
||
148 | } |
||
149 |