1 | <?php |
||
14 | class HeaderParameterSubSchema extends ClassStructure { |
||
15 | /** @var bool Determines whether or not this parameter is required or optional. */ |
||
16 | public $required; |
||
17 | |||
18 | /** @var string Determines the location of the parameter. */ |
||
19 | public $in; |
||
20 | |||
21 | /** @var string A brief description of the parameter. This could contain examples of use. GitHub Flavored Markdown is allowed. */ |
||
22 | public $description; |
||
23 | |||
24 | /** @var string The name of the parameter. */ |
||
25 | public $name; |
||
26 | |||
27 | /** @var string */ |
||
28 | public $type; |
||
29 | |||
30 | /** @var string */ |
||
31 | public $format; |
||
32 | |||
33 | /** @var PrimitivesItems */ |
||
34 | public $items; |
||
35 | |||
36 | /** @var string */ |
||
37 | public $collectionFormat; |
||
38 | |||
39 | public $default; |
||
40 | |||
41 | /** @var float */ |
||
42 | public $maximum; |
||
43 | |||
44 | /** @var bool */ |
||
45 | public $exclusiveMaximum; |
||
46 | |||
47 | /** @var float */ |
||
48 | public $minimum; |
||
49 | |||
50 | /** @var bool */ |
||
51 | public $exclusiveMinimum; |
||
52 | |||
53 | /** @var int */ |
||
54 | public $maxLength; |
||
55 | |||
56 | /** @var int */ |
||
57 | public $minLength; |
||
58 | |||
59 | /** @var string */ |
||
60 | public $pattern; |
||
61 | |||
62 | /** @var int */ |
||
63 | public $maxItems; |
||
64 | |||
65 | /** @var int */ |
||
66 | public $minItems; |
||
67 | |||
68 | /** @var bool */ |
||
69 | public $uniqueItems; |
||
70 | |||
71 | /** @var array */ |
||
72 | public $enum; |
||
73 | |||
74 | /** @var float */ |
||
75 | public $multipleOf; |
||
76 | |||
77 | /** |
||
78 | * @param Properties|static $properties |
||
79 | * @param JsonBasicSchema $ownerSchema |
||
80 | */ |
||
81 | public static function setUpProperties($properties, JsonBasicSchema $ownerSchema) |
||
149 | |||
150 | /** |
||
151 | * @param bool $required Determines whether or not this parameter is required or optional. |
||
152 | * @return $this |
||
153 | */ |
||
154 | public function setRequired($required) |
||
159 | |||
160 | /** |
||
161 | * @param string $in Determines the location of the parameter. |
||
162 | * @return $this |
||
163 | */ |
||
164 | public function setIn($in) |
||
169 | |||
170 | /** |
||
171 | * @param string $description A brief description of the parameter. This could contain examples of use. GitHub Flavored Markdown is allowed. |
||
172 | * @return $this |
||
173 | */ |
||
174 | public function setDescription($description) |
||
179 | |||
180 | /** |
||
181 | * @param string $name The name of the parameter. |
||
182 | * @return $this |
||
183 | */ |
||
184 | public function setName($name) |
||
189 | |||
190 | /** |
||
191 | * @param string $type |
||
192 | * @return $this |
||
193 | */ |
||
194 | public function setType($type) |
||
199 | |||
200 | /** |
||
201 | * @param string $format |
||
202 | * @return $this |
||
203 | */ |
||
204 | public function setFormat($format) |
||
209 | |||
210 | /** |
||
211 | * @param PrimitivesItems $items |
||
212 | * @return $this |
||
213 | */ |
||
214 | public function setItems($items) |
||
219 | |||
220 | /** |
||
221 | * @param string $collectionFormat |
||
222 | * @return $this |
||
223 | */ |
||
224 | public function setCollectionFormat($collectionFormat) |
||
229 | |||
230 | /** |
||
231 | * @param $default |
||
232 | * @return $this |
||
233 | */ |
||
234 | public function setDefault($default) |
||
239 | |||
240 | /** |
||
241 | * @param float $maximum |
||
242 | * @return $this |
||
243 | */ |
||
244 | public function setMaximum($maximum) |
||
249 | |||
250 | /** |
||
251 | * @param bool $exclusiveMaximum |
||
252 | * @return $this |
||
253 | */ |
||
254 | public function setExclusiveMaximum($exclusiveMaximum) |
||
259 | |||
260 | /** |
||
261 | * @param float $minimum |
||
262 | * @return $this |
||
263 | */ |
||
264 | public function setMinimum($minimum) |
||
269 | |||
270 | /** |
||
271 | * @param bool $exclusiveMinimum |
||
272 | * @return $this |
||
273 | */ |
||
274 | public function setExclusiveMinimum($exclusiveMinimum) |
||
279 | |||
280 | /** |
||
281 | * @param int $maxLength |
||
282 | * @return $this |
||
283 | */ |
||
284 | public function setMaxLength($maxLength) |
||
289 | |||
290 | /** |
||
291 | * @param int $minLength |
||
292 | * @return $this |
||
293 | */ |
||
294 | public function setMinLength($minLength) |
||
299 | |||
300 | /** |
||
301 | * @param string $pattern |
||
302 | * @return $this |
||
303 | */ |
||
304 | public function setPattern($pattern) |
||
309 | |||
310 | /** |
||
311 | * @param int $maxItems |
||
312 | * @return $this |
||
313 | */ |
||
314 | public function setMaxItems($maxItems) |
||
319 | |||
320 | /** |
||
321 | * @param int $minItems |
||
322 | * @return $this |
||
323 | */ |
||
324 | public function setMinItems($minItems) |
||
329 | |||
330 | /** |
||
331 | * @param bool $uniqueItems |
||
332 | * @return $this |
||
333 | */ |
||
334 | public function setUniqueItems($uniqueItems) |
||
339 | |||
340 | /** |
||
341 | * @param array $enum |
||
342 | * @return $this |
||
343 | */ |
||
344 | public function setEnum($enum) |
||
349 | |||
350 | /** |
||
351 | * @param float $multipleOf |
||
352 | * @return $this |
||
353 | */ |
||
354 | public function setMultipleOf($multipleOf) |
||
359 | } |
||
360 | |||
361 |
This check looks for assignments to scalar types that may be of the wrong type.
To ensure the code behaves as expected, it may be a good idea to add an explicit type cast.