| @@ 136-145 (lines=10) @@ | ||
| 133 | * |
|
| 134 | * @return Property|null |
|
| 135 | */ |
|
| 136 | private function getPropertyAnnotationData($property) |
|
| 137 | { |
|
| 138 | $result = $this->reader->getPropertyAnnotation($property, self::PROPERTY_ANNOTATION); |
|
| 139 | ||
| 140 | if ($result !== null && $result->name === null) { |
|
| 141 | $result->name = Caser::snake($property->getName()); |
|
| 142 | } |
|
| 143 | ||
| 144 | return $result; |
|
| 145 | } |
|
| 146 | ||
| 147 | /** |
|
| 148 | * Returns Embedded annotation data from reader. |
|
| @@ 154-163 (lines=10) @@ | ||
| 151 | * |
|
| 152 | * @return Embedded|null |
|
| 153 | */ |
|
| 154 | private function getEmbeddedAnnotationData($property) |
|
| 155 | { |
|
| 156 | $result = $this->reader->getPropertyAnnotation($property, self::EMBEDDED_ANNOTATION); |
|
| 157 | ||
| 158 | if ($result !== null && $result->name === null) { |
|
| 159 | $result->name = Caser::snake($property->getName()); |
|
| 160 | } |
|
| 161 | ||
| 162 | return $result; |
|
| 163 | } |
|
| 164 | ||
| 165 | /** |
|
| 166 | * Returns meta field annotation data from reader. |
|