@@ 232-238 (lines=7) @@ | ||
229 | * |
|
230 | * @return string|null |
|
231 | */ |
|
232 | private function getDocumentParentType(\ReflectionClass $reflectionClass) |
|
233 | { |
|
234 | /** @var Document $class */ |
|
235 | $class = $this->reader->getClassAnnotation($reflectionClass, 'ONGR\ElasticsearchBundle\Annotation\Document'); |
|
236 | ||
237 | return $class ? $this->getDocumentType($reflectionClass, $class) : null; |
|
238 | } |
|
239 | ||
240 | /** |
|
241 | * @param \ReflectionClass $reflectionClass |
|
@@ 245-251 (lines=7) @@ | ||
242 | * |
|
243 | * @return array |
|
244 | */ |
|
245 | private function getSkippedProperties(\ReflectionClass $reflectionClass) |
|
246 | { |
|
247 | /** @var Skip $class */ |
|
248 | $class = $this->reader->getClassAnnotation($reflectionClass, 'ONGR\ElasticsearchBundle\Annotation\Skip'); |
|
249 | ||
250 | return $class === null ? [] : $class->value; |
|
251 | } |
|
252 | ||
253 | /** |
|
254 | * @param \ReflectionClass $reflectionClass |
|
@@ 258-264 (lines=7) @@ | ||
255 | * |
|
256 | * @return array |
|
257 | */ |
|
258 | private function getInheritedProperties(\ReflectionClass $reflectionClass) |
|
259 | { |
|
260 | /** @var Inherit $class */ |
|
261 | $class = $this->reader->getClassAnnotation($reflectionClass, 'ONGR\ElasticsearchBundle\Annotation\Inherit'); |
|
262 | ||
263 | return $class === null ? [] : $class->value; |
|
264 | } |
|
265 | ||
266 | /** |
|
267 | * Returns document type. |