function Reader::getPropertyAnnotation
Gets a property annotation.
@template T
Parameters
ReflectionProperty $property The ReflectionProperty to read the annotations from.:
class-string<T> $annotationName The name of the annotation.:
Return value
T|null The Annotation or NULL, if the requested annotation does not exist.
4 methods override Reader::getPropertyAnnotation()
- AnnotationReader::getPropertyAnnotation in vendor/
doctrine/ annotations/ lib/ Doctrine/ Common/ Annotations/ AnnotationReader.php - Gets a property annotation.
- IndexedReader::getPropertyAnnotation in vendor/
doctrine/ annotations/ lib/ Doctrine/ Common/ Annotations/ IndexedReader.php - Gets a property annotation.
- PsrCachedReader::getPropertyAnnotation in vendor/
doctrine/ annotations/ lib/ Doctrine/ Common/ Annotations/ PsrCachedReader.php - Gets a property annotation.
- SimpleAnnotationReader::getPropertyAnnotation in core/
lib/ Drupal/ Component/ Annotation/ Doctrine/ SimpleAnnotationReader.php - Gets a property annotation.
File
-
vendor/
doctrine/ annotations/ lib/ Doctrine/ Common/ Annotations/ Reader.php, line 79
Class
- Reader
- Interface for annotation readers.
Namespace
Doctrine\Common\AnnotationsCode
public function getPropertyAnnotation(ReflectionProperty $property, $annotationName);