| Methods |
public
static
|
addGlobalIgnoredName(string $name)
Add a new annotation to the globally ignored annotation names with regard to exception handling.
Add a new annotation to the globally ignored annotation names with regard to exception handling.
|
#
|
public
static
|
addGlobalIgnoredNamespace(string $namespace)
Add a new annotation to the globally ignored annotation namespaces with regard to exception handling.
Add a new annotation to the globally ignored annotation namespaces with regard to exception handling.
|
#
|
public
|
__construct(?DocParser $parser = null)
Initializes a new AnnotationReader.
Initializes a new AnnotationReader.
Throws
|
#
|
public
|
getClassAnnotations(ReflectionClass $class)
{@inheritDoc}
Parameters
| $class |
The ReflectionClass of the class from which
the class annotations should be read.
|
Returns
Implements
|
#
|
public
|
getClassAnnotation(ReflectionClass $class, $annotationName)
{@inheritDoc}
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.
Implements
|
#
|
public
|
getPropertyAnnotations(ReflectionProperty $property)
{@inheritDoc}
Parameters
| $property |
The ReflectionProperty of the property
from which the annotations should be read.
|
Returns
Implements
|
#
|
public
|
getPropertyAnnotation(ReflectionProperty $property, $annotationName)
{@inheritDoc}
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.
Implements
|
#
|
public
|
getMethodAnnotations(ReflectionMethod $method)
{@inheritDoc}
Parameters
| $method |
The ReflectionMethod of the method from which
the annotations should be read.
|
Returns
Implements
|
#
|
public
|
getMethodAnnotation(ReflectionMethod $method, $annotationName)
{@inheritDoc}
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.
Implements
|
#
|
public
|
getFunctionAnnotations(ReflectionFunction $function): array
Gets the annotations applied to a function.
Gets the annotations applied to a function.
|
#
|
public
|
getFunctionAnnotation(ReflectionFunction $function, string $annotationName): object|null
Gets a function annotation.
Gets a function annotation.
Returns
The Annotation or NULL, if the requested annotation does not exist.
|
#
|
private
|
getIgnoredAnnotationNames(ReflectionClass|ReflectionFunction $reflection): array<string, true>
Returns the ignored annotations for the given class or function.
Returns the ignored annotations for the given class or function.
|
#
|
private
|
getImports(ReflectionClass|ReflectionFunction $reflection): array<string, class-string>
Retrieves imports for a class or a function.
Retrieves imports for a class or a function.
|
#
|
private
|
getMethodImports(ReflectionMethod $method): array<string, class-string>
Retrieves imports for methods.
Retrieves imports for methods.
|
#
|
private
|
getPropertyImports(ReflectionProperty $property): array<string, class-string>
Retrieves imports for properties.
Retrieves imports for properties.
|
#
|
private
|
collectParsingMetadata(ReflectionClass|ReflectionFunction $reflection): void
Collects parsing metadata for a given class or function.
Collects parsing metadata for a given class or function.
|
#
|