@@ -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 | { |
@@ -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) { |
@@ -85,6 +85,9 @@ |
||
| 85 | 85 | |
| 86 | 86 | private $__booleanSchema; |
| 87 | 87 | |
| 88 | + /** |
|
| 89 | + * @param string $dataName |
|
| 90 | + */ |
|
| 88 | 91 | public function addPropertyMapping($dataName, $propertyName, $mapping = self::DEFAULT_MAPPING) |
| 89 | 92 | { |
| 90 | 93 | $this->__dataToProperty[$mapping][$dataName] = $propertyName; |
@@ -107,7 +107,7 @@ discard block |
||
| 107 | 107 | } |
| 108 | 108 | |
| 109 | 109 | /** |
| 110 | - * @return static|NameMirror |
|
| 110 | + * @return NameMirror|null |
|
| 111 | 111 | */ |
| 112 | 112 | public static function names() |
| 113 | 113 | { |
@@ -118,6 +118,10 @@ discard block |
||
| 118 | 118 | return $nameflector; |
| 119 | 119 | } |
| 120 | 120 | |
| 121 | + /** |
|
| 122 | + * @param string $name |
|
| 123 | + * @param \Swaggest\JsonSchema\Schema $column |
|
| 124 | + */ |
|
| 121 | 125 | public function __set($name, $column) // todo nested schemas |
| 122 | 126 | { |
| 123 | 127 | if ($this->__validateOnSet) { |