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 | 5 | public function createLink(): Objects\Link |
|
37 | |||
38 | 1 | public function setDescription(string $description): self |
|
44 | |||
45 | 4 | public function setOperationId(string $operationId): self |
|
51 | |||
52 | 1 | public function setOperationRef(string $operationRef): self |
|
58 | |||
59 | 1 | public function setParameters(array $parameters): self |
|
65 | |||
66 | /** |
||
67 | * @param mixed $requestBody |
||
68 | */ |
||
69 | 1 | public function setRequestBody($requestBody): self |
|
75 | |||
76 | 1 | public function setServer(Objects\ServerFactory $server): self |
|
82 | |||
83 | 5 | private function getDescription(): ?string |
|
87 | |||
88 | 5 | private function getOperationId(): ?string |
|
92 | |||
93 | 5 | private function getOperationRef(): ?string |
|
97 | |||
98 | 5 | private function getParameters(): array |
|
102 | |||
103 | /** |
||
104 | * @return mixed |
||
105 | */ |
||
106 | 5 | private function getRequestBody() |
|
110 | |||
111 | 5 | private function getServer(): ?Objects\ServerFactory |
|
115 | } |
||
116 |