@@ -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) { |