class AnnotationReader implements Reader (View source)

A reader for docblock annotations.

Methods

static 
addGlobalIgnoredName(string $name)

Add a new annotation to the globally ignored annotation names with regard to exception handling.

__construct()

Constructor.

mixed
getClassAnnotations(ReflectionClass $class)

Gets the annotations applied to a class.

mixed
getClassAnnotation(ReflectionClass $class, string $annotationName)

Gets a class annotation.

mixed
getPropertyAnnotations(ReflectionProperty $property)

Gets the annotations applied to a property.

mixed
getPropertyAnnotation(ReflectionProperty $property, string $annotationName)

Gets a property annotation.

mixed
getMethodAnnotations(ReflectionMethod $method)

Gets the annotations applied to a method.

mixed
getMethodAnnotation(ReflectionMethod $method, string $annotationName)

Gets a method annotation.

Details

static addGlobalIgnoredName(string $name)

Add a new annotation to the globally ignored annotation names with regard to exception handling.

Parameters

string $name

__construct()

Constructor.

Initializes a new AnnotationReader.

mixed getClassAnnotations(ReflectionClass $class)

Gets the annotations applied to a class.

Parameters

ReflectionClass $class

Return Value

mixed

mixed getClassAnnotation(ReflectionClass $class, string $annotationName)

Gets a class annotation.

Parameters

ReflectionClass $class
string $annotationName

Return Value

mixed

mixed getPropertyAnnotations(ReflectionProperty $property)

Gets the annotations applied to a property.

Parameters

ReflectionProperty $property

Return Value

mixed

mixed getPropertyAnnotation(ReflectionProperty $property, string $annotationName)

Gets a property annotation.

Parameters

ReflectionProperty $property
string $annotationName

Return Value

mixed

mixed getMethodAnnotations(ReflectionMethod $method)

Gets the annotations applied to a method.

Parameters

ReflectionMethod $method

Return Value

mixed

mixed getMethodAnnotation(ReflectionMethod $method, string $annotationName)

Gets a method annotation.

Parameters

ReflectionMethod $method
string $annotationName

Return Value

mixed