public function SimpleAnnotationReader::getPropertyAnnotation in Zircon Profile 8
Same name and namespace in other branches
- 8.0 vendor/doctrine/annotations/lib/Doctrine/Common/Annotations/SimpleAnnotationReader.php \Doctrine\Common\Annotations\SimpleAnnotationReader::getPropertyAnnotation()
Gets a property annotation.
Parameters
\ReflectionProperty $property The ReflectionProperty to read the annotations from.:
string $annotationName The name of the annotation.:
Return value
object|null The Annotation or NULL, if the requested annotation does not exist.
Overrides Reader::getPropertyAnnotation
File
- vendor/
doctrine/ annotations/ lib/ Doctrine/ Common/ Annotations/ SimpleAnnotationReader.php, line 117
Class
- SimpleAnnotationReader
- Simple Annotation Reader.
Namespace
Doctrine\Common\AnnotationsCode
public function getPropertyAnnotation(\ReflectionProperty $property, $annotationName) {
foreach ($this
->getPropertyAnnotations($property) as $annot) {
if ($annot instanceof $annotationName) {
return $annot;
}
}
return null;
}