class IndexedReader implements Reader (View source)

Allows the reader to be used in-place of Doctrine's reader.

Methods

__construct(Reader $reader)

Constructor.

array
getClassAnnotations(ReflectionClass $class)

Gets the annotations applied to a class.

object|null
getClassAnnotation(ReflectionClass $class, $annotation)

Gets a class annotation.

array
getMethodAnnotations(ReflectionMethod $method)

Gets the annotations applied to a method.

object|null
getMethodAnnotation(ReflectionMethod $method, $annotation)

Gets a method annotation.

array
getPropertyAnnotations(ReflectionProperty $property)

Gets the annotations applied to a property.

object|null
getPropertyAnnotation(ReflectionProperty $property, $annotation)

Gets a property annotation.

mixed
__call(string $method, array $args)

Proxies all methods to the delegate.

Details

__construct(Reader $reader)

Constructor.

Parameters

Reader $reader

array getClassAnnotations(ReflectionClass $class)

Gets the annotations applied to a class.

Parameters

ReflectionClass $class The ReflectionClass of the class from which the class annotations should be read.

Return Value

array An array of Annotations.

object|null getClassAnnotation(ReflectionClass $class, $annotation)

Gets a class annotation.

Parameters

ReflectionClass $class The ReflectionClass of the class from which the class annotations should be read.
$annotation

Return Value

object|null The Annotation or NULL, if the requested annotation does not exist.

array getMethodAnnotations(ReflectionMethod $method)

Gets the annotations applied to a method.

Parameters

ReflectionMethod $method The ReflectionMethod of the method from which the annotations should be read.

Return Value

array An array of Annotations.

object|null getMethodAnnotation(ReflectionMethod $method, $annotation)

Gets a method annotation.

Parameters

ReflectionMethod $method The ReflectionMethod to read the annotations from.
$annotation

Return Value

object|null The Annotation or NULL, if the requested annotation does not exist.

array getPropertyAnnotations(ReflectionProperty $property)

Gets the annotations applied to a property.

Parameters

ReflectionProperty $property The ReflectionProperty of the property from which the annotations should be read.

Return Value

array An array of Annotations.

object|null getPropertyAnnotation(ReflectionProperty $property, $annotation)

Gets a property annotation.

Parameters

ReflectionProperty $property The ReflectionProperty to read the annotations from.
$annotation

Return Value

object|null The Annotation or NULL, if the requested annotation does not exist.

mixed __call(string $method, array $args)

Proxies all methods to the delegate.

Parameters

string $method
array $args

Return Value

mixed