1 | <?php |
||
14 | class JsonSchema extends ClassStructure { |
||
15 | /** @var string */ |
||
16 | public $id; |
||
17 | |||
18 | /** @var string */ |
||
19 | public $schema; |
||
20 | |||
21 | /** @var string */ |
||
22 | public $title; |
||
23 | |||
24 | /** @var string */ |
||
25 | public $description; |
||
26 | |||
27 | public $default; |
||
28 | |||
29 | /** @var float */ |
||
30 | public $multipleOf; |
||
31 | |||
32 | /** @var float */ |
||
33 | public $maximum; |
||
34 | |||
35 | /** @var bool */ |
||
36 | public $exclusiveMaximum; |
||
37 | |||
38 | /** @var float */ |
||
39 | public $minimum; |
||
40 | |||
41 | /** @var bool */ |
||
42 | public $exclusiveMinimum; |
||
43 | |||
44 | /** @var int */ |
||
45 | public $maxLength; |
||
46 | |||
47 | /** @var int */ |
||
48 | public $minLength; |
||
49 | |||
50 | /** @var string */ |
||
51 | public $pattern; |
||
52 | |||
53 | /** @var bool|JsonSchema */ |
||
54 | public $additionalItems; |
||
55 | |||
56 | /** @var JsonSchema|JsonSchema[]|array */ |
||
57 | public $items; |
||
58 | |||
59 | /** @var int */ |
||
60 | public $maxItems; |
||
61 | |||
62 | /** @var int */ |
||
63 | public $minItems; |
||
64 | |||
65 | /** @var bool */ |
||
66 | public $uniqueItems; |
||
67 | |||
68 | /** @var int */ |
||
69 | public $maxProperties; |
||
70 | |||
71 | /** @var int */ |
||
72 | public $minProperties; |
||
73 | |||
74 | /** @var string[]|array */ |
||
75 | public $required; |
||
76 | |||
77 | /** @var bool|JsonSchema */ |
||
78 | public $additionalProperties; |
||
79 | |||
80 | /** @var JsonSchema[] */ |
||
81 | public $definitions; |
||
82 | |||
83 | /** @var JsonSchema[] */ |
||
84 | public $properties; |
||
85 | |||
86 | /** @var JsonSchema[] */ |
||
87 | public $patternProperties; |
||
88 | |||
89 | /** @var JsonSchema[]|string[][]|array[] */ |
||
90 | public $dependencies; |
||
91 | |||
92 | /** @var array */ |
||
93 | public $enum; |
||
94 | |||
95 | /** @var array */ |
||
96 | public $type; |
||
97 | |||
98 | /** @var string */ |
||
99 | public $format; |
||
100 | |||
101 | /** @var string */ |
||
102 | public $ref; |
||
103 | |||
104 | /** @var JsonSchema[]|array */ |
||
105 | public $allOf; |
||
106 | |||
107 | /** @var JsonSchema[]|array */ |
||
108 | public $anyOf; |
||
109 | |||
110 | /** @var JsonSchema[]|array */ |
||
111 | public $oneOf; |
||
112 | |||
113 | /** @var JsonSchema Core schema meta-schema */ |
||
114 | public $not; |
||
115 | |||
116 | /** |
||
117 | * @param Properties|static $properties |
||
118 | * @param JsonBasicSchema $ownerSchema |
||
119 | */ |
||
120 | public static function setUpProperties($properties, JsonBasicSchema $ownerSchema) |
||
261 | |||
262 | /** |
||
263 | * @param string $id |
||
264 | * @return $this |
||
265 | */ |
||
266 | public function setId($id) |
||
271 | |||
272 | /** |
||
273 | * @param string $schema |
||
274 | * @return $this |
||
275 | */ |
||
276 | public function setSchema($schema) |
||
281 | |||
282 | /** |
||
283 | * @param string $title |
||
284 | * @return $this |
||
285 | */ |
||
286 | public function setTitle($title) |
||
291 | |||
292 | /** |
||
293 | * @param string $description |
||
294 | * @return $this |
||
295 | */ |
||
296 | public function setDescription($description) |
||
301 | |||
302 | /** |
||
303 | * @param $default |
||
304 | * @return $this |
||
305 | */ |
||
306 | public function setDefault($default) |
||
311 | |||
312 | /** |
||
313 | * @param float $multipleOf |
||
314 | * @return $this |
||
315 | */ |
||
316 | public function setMultipleOf($multipleOf) |
||
321 | |||
322 | /** |
||
323 | * @param float $maximum |
||
324 | * @return $this |
||
325 | */ |
||
326 | public function setMaximum($maximum) |
||
331 | |||
332 | /** |
||
333 | * @param bool $exclusiveMaximum |
||
334 | * @return $this |
||
335 | */ |
||
336 | public function setExclusiveMaximum($exclusiveMaximum) |
||
341 | |||
342 | /** |
||
343 | * @param float $minimum |
||
344 | * @return $this |
||
345 | */ |
||
346 | public function setMinimum($minimum) |
||
351 | |||
352 | /** |
||
353 | * @param bool $exclusiveMinimum |
||
354 | * @return $this |
||
355 | */ |
||
356 | public function setExclusiveMinimum($exclusiveMinimum) |
||
361 | |||
362 | /** |
||
363 | * @param int $maxLength |
||
364 | * @return $this |
||
365 | */ |
||
366 | public function setMaxLength($maxLength) |
||
371 | |||
372 | /** |
||
373 | * @param int $minLength |
||
374 | * @return $this |
||
375 | */ |
||
376 | public function setMinLength($minLength) |
||
381 | |||
382 | /** |
||
383 | * @param string $pattern |
||
384 | * @return $this |
||
385 | */ |
||
386 | public function setPattern($pattern) |
||
391 | |||
392 | /** |
||
393 | * @param bool|JsonSchema $additionalItems |
||
394 | * @return $this |
||
395 | */ |
||
396 | public function setAdditionalItems($additionalItems) |
||
401 | |||
402 | /** |
||
403 | * @param JsonSchema|JsonSchema[]|array $items |
||
404 | * @return $this |
||
405 | */ |
||
406 | public function setItems($items) |
||
411 | |||
412 | /** |
||
413 | * @param int $maxItems |
||
414 | * @return $this |
||
415 | */ |
||
416 | public function setMaxItems($maxItems) |
||
421 | |||
422 | /** |
||
423 | * @param int $minItems |
||
424 | * @return $this |
||
425 | */ |
||
426 | public function setMinItems($minItems) |
||
431 | |||
432 | /** |
||
433 | * @param bool $uniqueItems |
||
434 | * @return $this |
||
435 | */ |
||
436 | public function setUniqueItems($uniqueItems) |
||
441 | |||
442 | /** |
||
443 | * @param int $maxProperties |
||
444 | * @return $this |
||
445 | */ |
||
446 | public function setMaxProperties($maxProperties) |
||
451 | |||
452 | /** |
||
453 | * @param int $minProperties |
||
454 | * @return $this |
||
455 | */ |
||
456 | public function setMinProperties($minProperties) |
||
461 | |||
462 | /** |
||
463 | * @param string[]|array $required |
||
464 | * @return $this |
||
465 | */ |
||
466 | public function setRequired($required) |
||
471 | |||
472 | /** |
||
473 | * @param bool|JsonSchema $additionalProperties |
||
474 | * @return $this |
||
475 | */ |
||
476 | public function setAdditionalProperties($additionalProperties) |
||
481 | |||
482 | /** |
||
483 | * @param JsonSchema[] $definitions |
||
484 | * @return $this |
||
485 | */ |
||
486 | public function setDefinitions($definitions) |
||
491 | |||
492 | /** |
||
493 | * @param JsonSchema[] $properties |
||
494 | * @return $this |
||
495 | */ |
||
496 | public function setProperties($properties) |
||
501 | |||
502 | /** |
||
503 | * @param JsonSchema[] $patternProperties |
||
504 | * @return $this |
||
505 | */ |
||
506 | public function setPatternProperties($patternProperties) |
||
511 | |||
512 | /** |
||
513 | * @param JsonSchema[]|string[][]|array[] $dependencies |
||
514 | * @return $this |
||
515 | */ |
||
516 | public function setDependencies($dependencies) |
||
521 | |||
522 | /** |
||
523 | * @param array $enum |
||
524 | * @return $this |
||
525 | */ |
||
526 | public function setEnum($enum) |
||
531 | |||
532 | /** |
||
533 | * @param array $type |
||
534 | * @return $this |
||
535 | */ |
||
536 | public function setType($type) |
||
541 | |||
542 | /** |
||
543 | * @param string $format |
||
544 | * @return $this |
||
545 | */ |
||
546 | public function setFormat($format) |
||
551 | |||
552 | /** |
||
553 | * @param string $ref |
||
554 | * @return $this |
||
555 | */ |
||
556 | public function setRef($ref) |
||
561 | |||
562 | /** |
||
563 | * @param JsonSchema[]|array $allOf |
||
564 | * @return $this |
||
565 | */ |
||
566 | public function setAllOf($allOf) |
||
571 | |||
572 | /** |
||
573 | * @param JsonSchema[]|array $anyOf |
||
574 | * @return $this |
||
575 | */ |
||
576 | public function setAnyOf($anyOf) |
||
581 | |||
582 | /** |
||
583 | * @param JsonSchema[]|array $oneOf |
||
584 | * @return $this |
||
585 | */ |
||
586 | public function setOneOf($oneOf) |
||
591 | |||
592 | /** |
||
593 | * @param JsonSchema $not Core schema meta-schema |
||
594 | * @return $this |
||
595 | */ |
||
596 | public function setNot($not) |
||
601 | } |
||
602 | |||
603 |
Since your code implements the magic getter
_get
, this function will be called for any read access on an undefined variable. You can add the@property
annotation to your class or interface to document the existence of this variable.If the property has read access only, you can use the @property-read annotation instead.
Of course, you may also just have mistyped another name, in which case you should fix the error.
See also the PhpDoc documentation for @property.