PHP Класс Doctrine\Common\Annotations\CachedReader

Автор: Johannes M. Schmitt ([email protected])
Автор: Benjamin Eberlei ([email protected])
Наследование: implements Doctrine\Common\Annotations\Reader
Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
__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}

Приватные методы

Метод Описание
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.

Описание методов

__construct() публичный Метод

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() публичный Метод

Clears loaded annotations.
public clearLoadedAnnotations ( ) : void
Результат void

getClassAnnotation() публичный Метод

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

getClassAnnotations() публичный Метод

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

getMethodAnnotation() публичный Метод

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

getMethodAnnotations() публичный Метод

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

getPropertyAnnotation() публичный Метод

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

getPropertyAnnotations() публичный Метод

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