Doctrine\Common\Annotations\CachedReader
A cache aware annotation reader.
- Author: Johannes M. Schmitt <schmittjoh@gmail.com>
Synopsis
class CachedReader
implements
Reader
{
- // members
- private string $CACHE_SALT;
- private Reader $delegate;
- private Cache $cache;
- private boolean $debug;
- private array $loadedAnnotations;
- // methods
- public void __construct()
- public array getClassAnnotations()
- public null getClassAnnotation()
- public array getPropertyAnnotations()
- public null getPropertyAnnotation()
- public array getMethodAnnotations()
- public null getMethodAnnotation()
- public void clearLoadedAnnotations()
- private mixed|boolean fetchFromCache()
- private void saveToCache()
- private bool isCacheFresh()
Hierarchy
Implements
Members
private
- $CACHE_SALT — string
- $cache — Doctrine\Common\Cache\Cache
- $debug — boolean
- $delegate — Doctrine\Common\Annotations\Reader
- $loadedAnnotations — array
Methods
private
- fetchFromCache() — Fetches a value from the cache.
- isCacheFresh() — Check if cache is fresh
- saveToCache() — Saves a value to the cache
public
- __construct() — Constructor
- clearLoadedAnnotations() — Clear loaded annotations
- getClassAnnotation() — Get selected annotation for class
- getClassAnnotations() — Get annotations for class
- getMethodAnnotation() — Get selected method annotation
- getMethodAnnotations() — Get method annotations
- getPropertyAnnotation() — Get selected annotation for property
- getPropertyAnnotations() — Get annotations for property