1 | <?php |
||
14 | class FormDataParameterSubSchema 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 bool allows sending a parameter by name only or with an empty value. */ |
||
28 | public $allowEmptyValue; |
||
29 | |||
30 | /** @var string */ |
||
31 | public $type; |
||
32 | |||
33 | /** @var string */ |
||
34 | public $format; |
||
35 | |||
36 | /** @var PrimitivesItems */ |
||
37 | public $items; |
||
38 | |||
39 | /** @var string */ |
||
40 | public $collectionFormat; |
||
41 | |||
42 | public $default; |
||
43 | |||
44 | /** @var float */ |
||
45 | public $maximum; |
||
46 | |||
47 | /** @var bool */ |
||
48 | public $exclusiveMaximum; |
||
49 | |||
50 | /** @var float */ |
||
51 | public $minimum; |
||
52 | |||
53 | /** @var bool */ |
||
54 | public $exclusiveMinimum; |
||
55 | |||
56 | /** @var int */ |
||
57 | public $maxLength; |
||
58 | |||
59 | /** @var int */ |
||
60 | public $minLength; |
||
61 | |||
62 | /** @var string */ |
||
63 | public $pattern; |
||
64 | |||
65 | /** @var int */ |
||
66 | public $maxItems; |
||
67 | |||
68 | /** @var int */ |
||
69 | public $minItems; |
||
70 | |||
71 | /** @var bool */ |
||
72 | public $uniqueItems; |
||
73 | |||
74 | /** @var array */ |
||
75 | public $enum; |
||
76 | |||
77 | /** @var float */ |
||
78 | public $multipleOf; |
||
79 | |||
80 | /** |
||
81 | * @param Properties|static $properties |
||
82 | * @param JsonBasicSchema $ownerSchema |
||
83 | */ |
||
84 | public static function setUpProperties($properties, JsonBasicSchema $ownerSchema) |
||
157 | |||
158 | /** |
||
159 | * @param bool $required Determines whether or not this parameter is required or optional. |
||
160 | * @return $this |
||
161 | */ |
||
162 | public function setRequired($required) |
||
167 | |||
168 | /** |
||
169 | * @param string $in Determines the location of the parameter. |
||
170 | * @return $this |
||
171 | */ |
||
172 | public function setIn($in) |
||
177 | |||
178 | /** |
||
179 | * @param string $description A brief description of the parameter. This could contain examples of use. GitHub Flavored Markdown is allowed. |
||
180 | * @return $this |
||
181 | */ |
||
182 | public function setDescription($description) |
||
187 | |||
188 | /** |
||
189 | * @param string $name The name of the parameter. |
||
190 | * @return $this |
||
191 | */ |
||
192 | public function setName($name) |
||
197 | |||
198 | /** |
||
199 | * @param bool $allowEmptyValue allows sending a parameter by name only or with an empty value. |
||
200 | * @return $this |
||
201 | */ |
||
202 | public function setAllowEmptyValue($allowEmptyValue) |
||
207 | |||
208 | /** |
||
209 | * @param string $type |
||
210 | * @return $this |
||
211 | */ |
||
212 | public function setType($type) |
||
217 | |||
218 | /** |
||
219 | * @param string $format |
||
220 | * @return $this |
||
221 | */ |
||
222 | public function setFormat($format) |
||
227 | |||
228 | /** |
||
229 | * @param PrimitivesItems $items |
||
230 | * @return $this |
||
231 | */ |
||
232 | public function setItems($items) |
||
237 | |||
238 | /** |
||
239 | * @param string $collectionFormat |
||
240 | * @return $this |
||
241 | */ |
||
242 | public function setCollectionFormat($collectionFormat) |
||
247 | |||
248 | /** |
||
249 | * @param $default |
||
250 | * @return $this |
||
251 | */ |
||
252 | public function setDefault($default) |
||
257 | |||
258 | /** |
||
259 | * @param float $maximum |
||
260 | * @return $this |
||
261 | */ |
||
262 | public function setMaximum($maximum) |
||
267 | |||
268 | /** |
||
269 | * @param bool $exclusiveMaximum |
||
270 | * @return $this |
||
271 | */ |
||
272 | public function setExclusiveMaximum($exclusiveMaximum) |
||
277 | |||
278 | /** |
||
279 | * @param float $minimum |
||
280 | * @return $this |
||
281 | */ |
||
282 | public function setMinimum($minimum) |
||
287 | |||
288 | /** |
||
289 | * @param bool $exclusiveMinimum |
||
290 | * @return $this |
||
291 | */ |
||
292 | public function setExclusiveMinimum($exclusiveMinimum) |
||
297 | |||
298 | /** |
||
299 | * @param int $maxLength |
||
300 | * @return $this |
||
301 | */ |
||
302 | public function setMaxLength($maxLength) |
||
307 | |||
308 | /** |
||
309 | * @param int $minLength |
||
310 | * @return $this |
||
311 | */ |
||
312 | public function setMinLength($minLength) |
||
317 | |||
318 | /** |
||
319 | * @param string $pattern |
||
320 | * @return $this |
||
321 | */ |
||
322 | public function setPattern($pattern) |
||
327 | |||
328 | /** |
||
329 | * @param int $maxItems |
||
330 | * @return $this |
||
331 | */ |
||
332 | public function setMaxItems($maxItems) |
||
337 | |||
338 | /** |
||
339 | * @param int $minItems |
||
340 | * @return $this |
||
341 | */ |
||
342 | public function setMinItems($minItems) |
||
347 | |||
348 | /** |
||
349 | * @param bool $uniqueItems |
||
350 | * @return $this |
||
351 | */ |
||
352 | public function setUniqueItems($uniqueItems) |
||
357 | |||
358 | /** |
||
359 | * @param array $enum |
||
360 | * @return $this |
||
361 | */ |
||
362 | public function setEnum($enum) |
||
367 | |||
368 | /** |
||
369 | * @param float $multipleOf |
||
370 | * @return $this |
||
371 | */ |
||
372 | public function setMultipleOf($multipleOf) |
||
377 | } |
||
378 | |||
379 |
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.