Property | Type | Description | |
---|---|---|---|
$reader |
Method | Description | |
---|---|---|
__construct ( Doctrine\Common\Cache\Cache $cacheReader = null ) | Instantiates a new annotation reader, optionally injecting a cache mechanism for it. | |
getClassAnnotation ( ReflectionClass $class, string $annotation ) : The | Gets a class annotation. | |
getClassAnnotations ( ReflectionClass $class ) : array | Gets the annotations applied to a class. | |
getMethodAnnotation ( ReflectionMethod $method, string $annotation ) : The | Gets a method annotation. | |
getMethodAnnotations ( ReflectionMethod $method ) : array | Gets the annotations applied to a method. | |
getPropertyAnnotation ( ReflectionProperty $property, string $annotation ) : The | Gets a property annotation. | |
getPropertyAnnotations ( ReflectionProperty $property ) : array | Gets the annotations applied to a property. |
Method | Description | |
---|---|---|
createCacheProvider ( ) : Doctrine\Common\Cache\CacheProvider | Creates a new instance of a cache provider. | |
getReader ( ) : |
Returns the cached reader associated with this reader. |
public __construct ( Doctrine\Common\Cache\Cache $cacheReader = null ) | ||
$cacheReader | Doctrine\Common\Cache\Cache |
protected createCacheProvider ( ) : Doctrine\Common\Cache\CacheProvider | ||
return | Doctrine\Common\Cache\CacheProvider |
public getClassAnnotation ( ReflectionClass $class, string $annotation ) : The | ||
$class | ReflectionClass | The ReflectionClass of the class from which the class annotations should be read. |
$annotation | string | The name of the annotation. |
return | The | Annotation or null, if the requested annotation does not exist. |
public getClassAnnotations ( ReflectionClass $class ) : array | ||
$class | ReflectionClass | The ReflectionClass of the class from which the class annotations should be read. |
return | array | An array of Annotations. |
public getMethodAnnotation ( ReflectionMethod $method, string $annotation ) : The | ||
$method | ReflectionMethod | |
$annotation | string | The name of the annotation. |
return | The | Annotation or null, if the requested annotation does not exist. |
public getMethodAnnotations ( ReflectionMethod $method ) : array | ||
$method | ReflectionMethod | |
return | array | An array of Annotations. |
public getPropertyAnnotation ( ReflectionProperty $property, string $annotation ) : The | ||
$property | ReflectionProperty | |
$annotation | string | The name of the annotation. |
return | The | Annotation or null, if the requested annotation does not exist. |
public getPropertyAnnotations ( ReflectionProperty $property ) : array | ||
$property | ReflectionProperty | The name or ReflectionProperty of the property from which the annotations should be read. |
return | array | An array of Annotations. |
protected getReader ( ) : |
||
return |