@@ 138-147 (lines=10) @@ | ||
135 | * |
|
136 | * @return Property|null |
|
137 | */ |
|
138 | private function getPropertyAnnotationData(\ReflectionProperty $property) |
|
139 | { |
|
140 | $result = $this->reader->getPropertyAnnotation($property, self::PROPERTY_ANNOTATION); |
|
141 | ||
142 | if ($result !== null && $result->name === null) { |
|
143 | $result->name = Caser::snake($property->getName()); |
|
144 | } |
|
145 | ||
146 | return $result; |
|
147 | } |
|
148 | ||
149 | /** |
|
150 | * Returns field annotation data from reader. |
|
@@ 178-187 (lines=10) @@ | ||
175 | * |
|
176 | * @return Embedded|null |
|
177 | */ |
|
178 | private function getEmbeddedAnnotationData(\ReflectionProperty $property) |
|
179 | { |
|
180 | $result = $this->reader->getPropertyAnnotation($property, self::EMBEDDED_ANNOTATION); |
|
181 | ||
182 | if ($result !== null && $result->name === null) { |
|
183 | $result->name = Caser::snake($property->getName()); |
|
184 | } |
|
185 | ||
186 | return $result; |
|
187 | } |
|
188 | ||
189 | /** |
|
190 | * Returns meta field annotation data from reader. |