@@ -12,7 +12,6 @@ |
||
12 | 12 | class Composition extends Schema |
13 | 13 | { |
14 | 14 | /** |
15 | - * @param Schema... $schema |
|
16 | 15 | */ |
17 | 16 | public function __construct() |
18 | 17 | { |
@@ -80,6 +80,9 @@ discard block |
||
80 | 80 | private $__propertyToData = array(); |
81 | 81 | |
82 | 82 | |
83 | + /** |
|
84 | + * @param string $dataName |
|
85 | + */ |
|
83 | 86 | public function addPropertyMapping($dataName, $propertyName, $mapping = self::DEFAULT_MAPPING) |
84 | 87 | { |
85 | 88 | $this->__dataToProperty[$mapping][$dataName] = $propertyName; |
@@ -653,6 +656,9 @@ discard block |
||
653 | 656 | return $this; |
654 | 657 | } |
655 | 658 | |
659 | + /** |
|
660 | + * @param string $path |
|
661 | + */ |
|
656 | 662 | private function fail(InvalidValue $exception, $path) |
657 | 663 | { |
658 | 664 | if ($path !== '#') { |
@@ -72,6 +72,9 @@ |
||
72 | 72 | /** @var Schema[] */ |
73 | 73 | public $nestedPropertyNames = array(); |
74 | 74 | |
75 | + /** |
|
76 | + * @param string $name |
|
77 | + */ |
|
75 | 78 | protected function addNested(Schema $nested, $name) |
76 | 79 | { |
77 | 80 | if (null === $nested->properties) { |
@@ -50,6 +50,9 @@ |
||
50 | 50 | return $prev; |
51 | 51 | } |
52 | 52 | |
53 | + /** |
|
54 | + * @param JsonSchema $data |
|
55 | + */ |
|
53 | 56 | public function setupResolutionScope($id, $data) |
54 | 57 | { |
55 | 58 | $rootResolver = $this->rootResolver ? $this->rootResolver : $this; |
@@ -39,7 +39,7 @@ discard block |
||
39 | 39 | } |
40 | 40 | |
41 | 41 | /** |
42 | - * @param mixed $data |
|
42 | + * @param \stdClass $data |
|
43 | 43 | * @param Context $options |
44 | 44 | * @return static |
45 | 45 | */ |
@@ -103,7 +103,7 @@ discard block |
||
103 | 103 | } |
104 | 104 | |
105 | 105 | /** |
106 | - * @return static |
|
106 | + * @return NameMirror|null |
|
107 | 107 | */ |
108 | 108 | public static function names() |
109 | 109 | { |
@@ -114,6 +114,10 @@ discard block |
||
114 | 114 | return $nameflector; |
115 | 115 | } |
116 | 116 | |
117 | + /** |
|
118 | + * @param string $name |
|
119 | + * @param \Swaggest\JsonSchema\Schema $column |
|
120 | + */ |
|
117 | 121 | public function __set($name, $column) // todo nested schemas |
118 | 122 | { |
119 | 123 | if ($this->__validateOnSet) { |