@@ -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,10 @@ |
||
| 50 | 50 | return $prev; |
| 51 | 51 | } |
| 52 | 52 | |
| 53 | + /** |
|
| 54 | + * @param string $id |
|
| 55 | + * @param JsonSchema $data |
|
| 56 | + */ |
|
| 53 | 57 | public function setupResolutionScope($id, $data) |
| 54 | 58 | { |
| 55 | 59 | $rootResolver = $this->rootResolver ? $this->rootResolver : $this; |
@@ -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) { |