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