class FileCacheReader implements Reader (View source)

File cache reader for annotations.

Methods

__construct(Reader $reader, string $cacheDir, bool $debug = false)

Constructor

mixed
getClassAnnotations(ReflectionClass $class)

Retrieve annotations for class

mixed
getPropertyAnnotations(ReflectionProperty $property)

Get annotations for property

mixed
getMethodAnnotations(ReflectionMethod $method)

Retrieve annotations for method

mixed
getClassAnnotation(ReflectionClass $class, string $annotationName)

Gets a class annotation.

mixed
getMethodAnnotation(ReflectionMethod $method, string $annotationName)

Gets a method annotation.

mixed
getPropertyAnnotation(ReflectionProperty $property, string $annotationName)

Gets a property annotation.

clearLoadedAnnotations()

Clear stores annotations

Details

__construct(Reader $reader, string $cacheDir, bool $debug = false)

Constructor

Parameters

Reader $reader
string $cacheDir
bool $debug

Exceptions

InvalidArgumentException

mixed getClassAnnotations(ReflectionClass $class)

Retrieve annotations for class

Parameters

ReflectionClass $class

Return Value

mixed

mixed getPropertyAnnotations(ReflectionProperty $property)

Get annotations for property

Parameters

ReflectionProperty $property

Return Value

mixed

mixed getMethodAnnotations(ReflectionMethod $method)

Retrieve annotations for method

Parameters

ReflectionMethod $method

Return Value

mixed

mixed getClassAnnotation(ReflectionClass $class, string $annotationName)

Gets a class annotation.

Parameters

ReflectionClass $class
string $annotationName

Return Value

mixed

mixed getMethodAnnotation(ReflectionMethod $method, string $annotationName)

Gets a method annotation.

Parameters

ReflectionMethod $method
string $annotationName

Return Value

mixed

mixed getPropertyAnnotation(ReflectionProperty $property, string $annotationName)

Gets a property annotation.

Parameters

ReflectionProperty $property
string $annotationName

Return Value

mixed

clearLoadedAnnotations()

Clear stores annotations