1 | <?php |
||
9 | final class HeaderBuilder implements Objects\HeaderFactory |
||
10 | { |
||
11 | use Properties\OptionalExtensions; |
||
12 | |||
13 | private $allowEmptyValue = false; |
||
14 | |||
15 | private $allowReserved = false; |
||
16 | |||
17 | private $content; |
||
18 | |||
19 | private $deprecated = false; |
||
20 | |||
21 | private $description; |
||
22 | |||
23 | private $examples; |
||
24 | |||
25 | private $explode; |
||
26 | |||
27 | private $required; |
||
28 | |||
29 | private $schema; |
||
30 | |||
31 | private $style; |
||
32 | |||
33 | 6 | public function createHeader(): Objects\Header |
|
49 | |||
50 | 4 | public function createHeaderAggregate(): Objects\HeaderAggregate |
|
54 | |||
55 | 1 | public function setAllowEmptyValue(bool $allowEmptyValue): self |
|
61 | |||
62 | 1 | public function setAllowReserved(bool $allowReserved): self |
|
68 | |||
69 | public function setContent(Objects\MediaTypesFactory $content): self |
||
75 | |||
76 | 1 | public function setDeprecated(bool $deprecated): self |
|
82 | |||
83 | 2 | public function setDescription(string $description): self |
|
89 | |||
90 | 1 | public function setExamples(Objects\ExamplesFactory $examples): self |
|
96 | |||
97 | 1 | public function setExplode(bool $explode): self |
|
103 | |||
104 | 1 | public function setRequired(bool $required): self |
|
110 | |||
111 | 4 | public function setSchema(Objects\SchemaAggregateFactory $schema): self |
|
117 | |||
118 | 1 | public function setStyle(string $style): self |
|
124 | |||
125 | 6 | private function getContent(): ?Objects\MediaTypesFactory |
|
129 | |||
130 | 6 | private function getDescription(): ?string |
|
134 | |||
135 | 6 | private function getExamples(): ?Objects\ExamplesFactory |
|
139 | |||
140 | 6 | private function getSchema(): ?Objects\SchemaAggregateFactory |
|
144 | |||
145 | 6 | private function getStyle(): ?string |
|
149 | |||
150 | 6 | private function isAllowEmptyValue(): bool |
|
154 | |||
155 | 6 | private function isAllowReserved(): bool |
|
159 | |||
160 | 6 | private function isDeprecated(): bool |
|
164 | |||
165 | 6 | private function isExplode(): ?bool |
|
169 | |||
170 | 6 | private function isRequired(): ?bool |
|
174 | } |
||
175 |