public function IndexedReader::getPropertyAnnotations in Service Container 7
Same name and namespace in other branches
- 7.2 modules/providers/service_container_annotation_discovery/lib/Doctrine/annotations/lib/Doctrine/Common/Annotations/IndexedReader.php \Doctrine\Common\Annotations\IndexedReader::getPropertyAnnotations()
Gets the annotations applied to a property.
Parameters
\ReflectionProperty $property The ReflectionProperty of the property: from which the annotations should be read.
Return value
array An array of Annotations.
Overrides Reader::getPropertyAnnotations
File
- modules/
providers/ service_container_annotation_discovery/ lib/ Doctrine/ annotations/ lib/ Doctrine/ Common/ Annotations/ IndexedReader.php, line 89
Class
- IndexedReader
- Allows the reader to be used in-place of Doctrine's reader.
Namespace
Doctrine\Common\AnnotationsCode
public function getPropertyAnnotations(\ReflectionProperty $property) {
$annotations = array();
foreach ($this->delegate
->getPropertyAnnotations($property) as $annot) {
$annotations[get_class($annot)] = $annot;
}
return $annotations;
}