|
@@ 139-148 (lines=10) @@
|
| 136 |
|
* |
| 137 |
|
* @return Property|object|null |
| 138 |
|
*/ |
| 139 |
|
private function getPropertyAnnotationData(\ReflectionProperty $property) |
| 140 |
|
{ |
| 141 |
|
$result = $this->reader->getPropertyAnnotation($property, self::PROPERTY_ANNOTATION); |
| 142 |
|
|
| 143 |
|
if ($result !== null && $result->name === null) { |
| 144 |
|
$result->name = Caser::snake($property->getName()); |
| 145 |
|
} |
| 146 |
|
|
| 147 |
|
return $result; |
| 148 |
|
} |
| 149 |
|
|
| 150 |
|
/** |
| 151 |
|
* Returns Embedded annotation data from reader. |
|
@@ 157-166 (lines=10) @@
|
| 154 |
|
* |
| 155 |
|
* @return Embedded|object|null |
| 156 |
|
*/ |
| 157 |
|
private function getEmbeddedAnnotationData(\ReflectionProperty $property) |
| 158 |
|
{ |
| 159 |
|
$result = $this->reader->getPropertyAnnotation($property, self::EMBEDDED_ANNOTATION); |
| 160 |
|
|
| 161 |
|
if ($result !== null && $result->name === null) { |
| 162 |
|
$result->name = Caser::snake($property->getName()); |
| 163 |
|
} |
| 164 |
|
|
| 165 |
|
return $result; |
| 166 |
|
} |
| 167 |
|
|
| 168 |
|
/** |
| 169 |
|
* Returns HashMap annotation data from reader. |
|
@@ 175-184 (lines=10) @@
|
| 172 |
|
* |
| 173 |
|
* @return HashMap|object|null |
| 174 |
|
*/ |
| 175 |
|
private function getHashMapAnnotationData(\ReflectionProperty $property) |
| 176 |
|
{ |
| 177 |
|
$result = $this->reader->getPropertyAnnotation($property, self::HASH_MAP_ANNOTATION); |
| 178 |
|
|
| 179 |
|
if ($result !== null && $result->name === null) { |
| 180 |
|
$result->name = Caser::snake($property->getName()); |
| 181 |
|
} |
| 182 |
|
|
| 183 |
|
return $result; |
| 184 |
|
} |
| 185 |
|
|
| 186 |
|
/** |
| 187 |
|
* Returns meta field annotation data from reader. |