PHP Class Doctrine\Common\Annotations\CachedReader

Author: Johannes M. Schmitt ([email protected])
Author: Benjamin Eberlei ([email protected])
Inheritance: implements Doctrine\Common\Annotations\Reader
Exibir arquivo Open project: doctrine/annotations Class Usage Examples

Public Methods

Method Description
__construct ( Doctrine\Common\Annotations\Reader $reader, Doctrine\Common\Cache\Cache $cache, boolean $debug = false ) Constructor.
clearLoadedAnnotations ( ) : void Clears loaded annotations.
getClassAnnotation ( ReflectionClass $class, $annotationName ) {@inheritDoc}
getClassAnnotations ( ReflectionClass $class ) {@inheritDoc}
getMethodAnnotation ( ReflectionMethod $method, $annotationName ) {@inheritDoc}
getMethodAnnotations ( ReflectionMethod $method ) {@inheritDoc}
getPropertyAnnotation ( ReflectionProperty $property, $annotationName ) {@inheritDoc}
getPropertyAnnotations ( ReflectionProperty $property ) {@inheritDoc}

Private Methods

Method Description
fetchFromCache ( string $cacheKey, ReflectionClass $class ) : mixed Fetches a value from the cache.
getLastModification ( ReflectionClass $class ) : integer Returns the time the class was last modified, testing traits and parents
getTraitLastModificationTimes ( ReflectionClass $reflectionTrait )
isCacheFresh ( string $cacheKey, ReflectionClass $class ) : boolean Checks if the cache is fresh.
saveToCache ( string $cacheKey, mixed $value ) : void Saves a value to the cache.

Method Details

__construct() public method

Constructor.
public __construct ( Doctrine\Common\Annotations\Reader $reader, Doctrine\Common\Cache\Cache $cache, boolean $debug = false )
$reader Doctrine\Common\Annotations\Reader
$cache Doctrine\Common\Cache\Cache
$debug boolean

clearLoadedAnnotations() public method

Clears loaded annotations.
public clearLoadedAnnotations ( ) : void
return void

getClassAnnotation() public method

{@inheritDoc}
public getClassAnnotation ( ReflectionClass $class, $annotationName )
$class ReflectionClass

getClassAnnotations() public method

{@inheritDoc}
public getClassAnnotations ( ReflectionClass $class )
$class ReflectionClass

getMethodAnnotation() public method

{@inheritDoc}
public getMethodAnnotation ( ReflectionMethod $method, $annotationName )
$method ReflectionMethod

getMethodAnnotations() public method

{@inheritDoc}
public getMethodAnnotations ( ReflectionMethod $method )
$method ReflectionMethod

getPropertyAnnotation() public method

{@inheritDoc}
public getPropertyAnnotation ( ReflectionProperty $property, $annotationName )
$property ReflectionProperty

getPropertyAnnotations() public method

{@inheritDoc}
public getPropertyAnnotations ( ReflectionProperty $property )
$property ReflectionProperty