public function IndexedReader::getMethodAnnotations in Zircon Profile 8
Same name and namespace in other branches
- 8.0 vendor/doctrine/annotations/lib/Doctrine/Common/Annotations/IndexedReader.php \Doctrine\Common\Annotations\IndexedReader::getMethodAnnotations()
Gets the annotations applied to a method.
Parameters
\ReflectionMethod $method The ReflectionMethod of the method from which: the annotations should be read.
Return value
array An array of Annotations.
Overrides Reader::getMethodAnnotations
File
- vendor/
doctrine/ annotations/ lib/ Doctrine/ Common/ Annotations/ IndexedReader.php, line 68
Class
- IndexedReader
- Allows the reader to be used in-place of Doctrine's reader.
Namespace
Doctrine\Common\AnnotationsCode
public function getMethodAnnotations(\ReflectionMethod $method) {
$annotations = array();
foreach ($this->delegate
->getMethodAnnotations($method) as $annot) {
$annotations[get_class($annot)] = $annot;
}
return $annotations;
}