@@ -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 | { |
@@ -2,7 +2,6 @@ |
||
2 | 2 | |
3 | 3 | namespace Swaggest\JsonSchema\Structure; |
4 | 4 | |
5 | -use Swaggest\JsonSchema\Constraint\Properties; |
|
6 | 5 | use Swaggest\JsonSchema\MagicMap; |
7 | 6 | |
8 | 7 | class ObjectItem extends MagicMap |
@@ -118,6 +118,9 @@ discard block |
||
118 | 118 | private $__propertyToData = array(); |
119 | 119 | |
120 | 120 | |
121 | + /** |
|
122 | + * @param string $dataName |
|
123 | + */ |
|
121 | 124 | public function addPropertyMapping($dataName, $propertyName) |
122 | 125 | { |
123 | 126 | $this->__dataToProperty[$dataName] = $propertyName; |
@@ -617,6 +620,9 @@ discard block |
||
617 | 620 | } |
618 | 621 | |
619 | 622 | |
623 | + /** |
|
624 | + * @param string $path |
|
625 | + */ |
|
620 | 626 | private function fail(InvalidValue $exception, $path) |
621 | 627 | { |
622 | 628 | if ($path !== '#') { |
@@ -710,6 +716,9 @@ discard block |
||
710 | 716 | return $this; |
711 | 717 | } |
712 | 718 | |
719 | + /** |
|
720 | + * @param string $className |
|
721 | + */ |
|
713 | 722 | public function getMeta($className) |
714 | 723 | { |
715 | 724 | if (isset($this->metaItems[$className])) { |
@@ -96,6 +96,9 @@ |
||
96 | 96 | return $contents; |
97 | 97 | } |
98 | 98 | |
99 | + /** |
|
100 | + * @param string $path |
|
101 | + */ |
|
99 | 102 | private function dumpSchemaDeeper(Schema $schema, $path) |
100 | 103 | { |
101 | 104 | $result = new \stdClass(); |
@@ -5,7 +5,6 @@ |
||
5 | 5 | use PhpLang\ScopeExit; |
6 | 6 | use Swaggest\JsonSchema\Constraint\Properties; |
7 | 7 | use Swaggest\JsonSchema\Constraint\Ref; |
8 | -use Swaggest\JsonSchema\Constraint\Type; |
|
9 | 8 | use Swaggest\JsonSchema\RemoteRef\BasicFetcher; |
10 | 9 | |
11 | 10 | /** |