1 | <?php |
||
14 | class Header extends ClassStructure { |
||
15 | /** @var string */ |
||
16 | public $type; |
||
17 | |||
18 | /** @var string */ |
||
19 | public $format; |
||
20 | |||
21 | /** @var PrimitivesItems */ |
||
22 | public $items; |
||
23 | |||
24 | /** @var string */ |
||
25 | public $collectionFormat; |
||
26 | |||
27 | public $default; |
||
28 | |||
29 | /** @var float */ |
||
30 | public $maximum; |
||
31 | |||
32 | /** @var bool */ |
||
33 | public $exclusiveMaximum; |
||
34 | |||
35 | /** @var float */ |
||
36 | public $minimum; |
||
37 | |||
38 | /** @var bool */ |
||
39 | public $exclusiveMinimum; |
||
40 | |||
41 | /** @var int */ |
||
42 | public $maxLength; |
||
43 | |||
44 | /** @var int */ |
||
45 | public $minLength; |
||
46 | |||
47 | /** @var string */ |
||
48 | public $pattern; |
||
49 | |||
50 | /** @var int */ |
||
51 | public $maxItems; |
||
52 | |||
53 | /** @var int */ |
||
54 | public $minItems; |
||
55 | |||
56 | /** @var bool */ |
||
57 | public $uniqueItems; |
||
58 | |||
59 | /** @var array */ |
||
60 | public $enum; |
||
61 | |||
62 | /** @var float */ |
||
63 | public $multipleOf; |
||
64 | |||
65 | /** @var string */ |
||
66 | public $description; |
||
67 | |||
68 | /** |
||
69 | * @param Properties|static $properties |
||
70 | * @param JsonBasicSchema $ownerSchema |
||
71 | */ |
||
72 | public static function setUpProperties($properties, JsonBasicSchema $ownerSchema) |
||
132 | |||
133 | /** |
||
134 | * @param string $type |
||
135 | * @return $this |
||
136 | */ |
||
137 | public function setType($type) |
||
142 | |||
143 | /** |
||
144 | * @param string $format |
||
145 | * @return $this |
||
146 | */ |
||
147 | public function setFormat($format) |
||
152 | |||
153 | /** |
||
154 | * @param PrimitivesItems $items |
||
155 | * @return $this |
||
156 | */ |
||
157 | public function setItems($items) |
||
162 | |||
163 | /** |
||
164 | * @param string $collectionFormat |
||
165 | * @return $this |
||
166 | */ |
||
167 | public function setCollectionFormat($collectionFormat) |
||
172 | |||
173 | /** |
||
174 | * @param $default |
||
175 | * @return $this |
||
176 | */ |
||
177 | public function setDefault($default) |
||
182 | |||
183 | /** |
||
184 | * @param float $maximum |
||
185 | * @return $this |
||
186 | */ |
||
187 | public function setMaximum($maximum) |
||
192 | |||
193 | /** |
||
194 | * @param bool $exclusiveMaximum |
||
195 | * @return $this |
||
196 | */ |
||
197 | public function setExclusiveMaximum($exclusiveMaximum) |
||
202 | |||
203 | /** |
||
204 | * @param float $minimum |
||
205 | * @return $this |
||
206 | */ |
||
207 | public function setMinimum($minimum) |
||
212 | |||
213 | /** |
||
214 | * @param bool $exclusiveMinimum |
||
215 | * @return $this |
||
216 | */ |
||
217 | public function setExclusiveMinimum($exclusiveMinimum) |
||
222 | |||
223 | /** |
||
224 | * @param int $maxLength |
||
225 | * @return $this |
||
226 | */ |
||
227 | public function setMaxLength($maxLength) |
||
232 | |||
233 | /** |
||
234 | * @param int $minLength |
||
235 | * @return $this |
||
236 | */ |
||
237 | public function setMinLength($minLength) |
||
242 | |||
243 | /** |
||
244 | * @param string $pattern |
||
245 | * @return $this |
||
246 | */ |
||
247 | public function setPattern($pattern) |
||
252 | |||
253 | /** |
||
254 | * @param int $maxItems |
||
255 | * @return $this |
||
256 | */ |
||
257 | public function setMaxItems($maxItems) |
||
262 | |||
263 | /** |
||
264 | * @param int $minItems |
||
265 | * @return $this |
||
266 | */ |
||
267 | public function setMinItems($minItems) |
||
272 | |||
273 | /** |
||
274 | * @param bool $uniqueItems |
||
275 | * @return $this |
||
276 | */ |
||
277 | public function setUniqueItems($uniqueItems) |
||
282 | |||
283 | /** |
||
284 | * @param array $enum |
||
285 | * @return $this |
||
286 | */ |
||
287 | public function setEnum($enum) |
||
292 | |||
293 | /** |
||
294 | * @param float $multipleOf |
||
295 | * @return $this |
||
296 | */ |
||
297 | public function setMultipleOf($multipleOf) |
||
302 | |||
303 | /** |
||
304 | * @param string $description |
||
305 | * @return $this |
||
306 | */ |
||
307 | public function setDescription($description) |
||
312 | } |
||
313 | |||
314 |
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.