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.

getClassAnnotations(ReflectionClass $class)

Gets the annotations applied to a class.

getClassAnnotation(ReflectionClass $class, $annotationName)

Gets a class annotation.

getPropertyAnnotations(ReflectionProperty $property)

Gets the annotations applied to a property.

getPropertyAnnotation(ReflectionProperty $property, $annotationName)

Gets a property annotation.

getMethodAnnotations(ReflectionMethod $method)

Gets the annotations applied to a method.

getMethodAnnotation(ReflectionMethod $method, $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.

getClassAnnotations(ReflectionClass $class)

Gets the annotations applied to a class.

Parameters

ReflectionClass $class

getClassAnnotation(ReflectionClass $class, $annotationName)

Gets a class annotation.

Parameters

ReflectionClass $class
$annotationName

getPropertyAnnotations(ReflectionProperty $property)

Gets the annotations applied to a property.

Parameters

ReflectionProperty $property

getPropertyAnnotation(ReflectionProperty $property, $annotationName)

Gets a property annotation.

Parameters

ReflectionProperty $property
$annotationName

getMethodAnnotations(ReflectionMethod $method)

Gets the annotations applied to a method.

Parameters

ReflectionMethod $method

getMethodAnnotation(ReflectionMethod $method, $annotationName)

Gets a method annotation.

Parameters

ReflectionMethod $method
$annotationName