1 | <?php |
||
9 | final class LinkBuilder implements Objects\LinkFactory |
||
10 | { |
||
11 | use Properties\OptionalExtensions; |
||
12 | |||
13 | private $description; |
||
14 | |||
15 | private $operationId; |
||
16 | |||
17 | private $operationRef; |
||
18 | |||
19 | private $parameters = []; |
||
20 | |||
21 | private $requestBody; |
||
22 | |||
23 | private $server; |
||
24 | |||
25 | public function createLink(): Objects\Link |
||
37 | |||
38 | public function setDescription(string $description): self |
||
44 | |||
45 | public function setOperationId(string $operationId): self |
||
51 | |||
52 | public function setOperationRef(string $operationRef): self |
||
58 | |||
59 | public function setParameters(array $parameters): self |
||
65 | |||
66 | /** |
||
67 | * @param mixed $requestBody |
||
68 | */ |
||
69 | public function setRequestBody($requestBody): self |
||
75 | |||
76 | public function setServer(Objects\ServerFactory $server): self |
||
82 | |||
83 | private function getDescription(): ?string |
||
87 | |||
88 | private function getOperationId(): ?string |
||
92 | |||
93 | private function getOperationRef(): ?string |
||
97 | |||
98 | private function getParameters(): array |
||
102 | |||
103 | /** |
||
104 | * @return mixed |
||
105 | */ |
||
106 | private function getRequestBody() |
||
110 | |||
111 | private function getServer(): ?Objects\ServerFactory |
||
115 | } |
||
116 |