@@ -57,6 +57,10 @@ discard block |
||
| 57 | 57 | $this->parseRange($definition, $match); |
| 58 | 58 | } |
| 59 | 59 | |
| 60 | + /** |
|
| 61 | + * @param string $definition |
|
| 62 | + * @param string[] $match |
|
| 63 | + */ |
|
| 60 | 64 | private function parseFormat($definition, $match) |
| 61 | 65 | { |
| 62 | 66 | if (strtolower($match[1]) !== 'object') { |
@@ -76,6 +80,10 @@ discard block |
||
| 76 | 80 | $this->additionalProperties = $type; |
| 77 | 81 | } |
| 78 | 82 | |
| 83 | + /** |
|
| 84 | + * @param string $definition |
|
| 85 | + * @param string[] $match |
|
| 86 | + */ |
|
| 79 | 87 | private function parseProperties($definition, $match) |
| 80 | 88 | { |
| 81 | 89 | if (empty($match[2])) { |
@@ -105,6 +113,10 @@ discard block |
||
| 105 | 113 | |
| 106 | 114 | } |
| 107 | 115 | |
| 116 | + /** |
|
| 117 | + * @param string $definition |
|
| 118 | + * @param string[] $match |
|
| 119 | + */ |
|
| 108 | 120 | private function parseRange($definition, $match) |
| 109 | 121 | { |
| 110 | 122 | if (!empty($match[3])) { |
@@ -125,6 +137,9 @@ discard block |
||
| 125 | 137 | } |
| 126 | 138 | } |
| 127 | 139 | |
| 140 | + /** |
|
| 141 | + * @param string|false $discriminator |
|
| 142 | + */ |
|
| 128 | 143 | private function setDiscriminator($discriminator) |
| 129 | 144 | { |
| 130 | 145 | if (!empty($this->discriminator)) { |