protected function parseAnnotations(ApiDoc $annotation, Route $route, \ReflectionMethod $method)
{
$classAnnotations = $this->reader->getMethodAnnotations($method);
$declaringClass = $method->getDeclaringClass();
$parentClass = $declaringClass->getParentClass();
$parentAnnotations = [];
if ($parentClass && $parentClass->hasMethod($method->getShortName())) {
$parentMethod = $parentClass->getMethod($method->getShortName());
$parentAnnotations = $this->reader->getMethodAnnotations($parentMethod);
}
$allAnnotations = array_merge($classAnnotations, $parentAnnotations);
foreach ($this->handlers as $handler) {
$handler->handle($annotation, $allAnnotations, $route, $method);
}
}