| Methods |
public
|
getClassAnnotations(ReflectionClass $class): array<object>
Gets the annotations applied to a class.
Gets the annotations applied to a class.
Parameters
| $class |
The ReflectionClass of the class from which
the class annotations should be read.
|
Returns
Implemented by
|
#
|
public
|
getClassAnnotation<T>(ReflectionClass $class, class-string<T> $annotationName): T|null
Gets a class annotation.
Parameters
| $class |
The ReflectionClass of the class from which
the class annotations should be read.
|
| $annotationName |
The name of the annotation.
|
Returns
The Annotation or NULL, if the requested annotation does not exist.
Implemented by
|
#
|
public
|
getMethodAnnotations(ReflectionMethod $method): array<object>
Gets the annotations applied to a method.
Gets the annotations applied to a method.
Parameters
| $method |
The ReflectionMethod of the method from which
the annotations should be read.
|
Returns
Implemented by
|
#
|
public
|
getMethodAnnotation<T>(ReflectionMethod $method, class-string<T> $annotationName): T|null
Gets a method annotation.
Gets a method annotation.
Parameters
| $method |
The ReflectionMethod to read the annotations from.
|
| $annotationName |
The name of the annotation.
|
Returns
The Annotation or NULL, if the requested annotation does not exist.
Implemented by
|
#
|
public
|
getPropertyAnnotations(ReflectionProperty $property): array<object>
Gets the annotations applied to a property.
Gets the annotations applied to a property.
Parameters
| $property |
The ReflectionProperty of the property
from which the annotations should be read.
|
Returns
Implemented by
|
#
|
public
|
getPropertyAnnotation<T>(ReflectionProperty $property, class-string<T> $annotationName): T|null
Gets a property annotation.
Gets a property annotation.
Parameters
| $property |
The ReflectionProperty to read the annotations from.
|
| $annotationName |
The name of the annotation.
|
Returns
The Annotation or NULL, if the requested annotation does not exist.
Implemented by
|
#
|