protected getMethodAnnotations ( ReflectionClass $class, Doctrine\Common\Annotations\SimpleAnnotationReader $reader ) : array | ||
$class | ReflectionClass | |
$reader | Doctrine\Common\Annotations\SimpleAnnotationReader | |
Результат | array |
protected function getMethodAnnotations(ReflectionClass $class, SimpleAnnotationReader $reader)
{
$annotations = [];
foreach ($class->getMethods() as $method) {
$results = $reader->getMethodAnnotations($method);
if (count($results) > 0) {
$annotations[$method->name] = $results;
}
}
return $annotations;
}