AnnotationReader
public class AnnotationReader
www.doctrine-project.org
Constructor Summary | |
---|---|
AnnotationReader(Cache cache) Constructor. |
Method Summary | |
---|---|
The | getClassAnnotation(mixed class, string annotation, $class ) Gets a class annotation. |
array | getClassAnnotations(string|ReflectionClass class) Gets the annotations applied to a class. |
The | getMethodAnnotation(ReflectionMethod method, string annotation) Gets a method annotation. |
array | getMethodAnnotations(mixed method, string|ReflectionClass class, string|ReflectionMethod property) Gets the annotations applied to a method. |
The | getPropertyAnnotation(ReflectionProperty property, string annotation) Gets a property annotation. |
array | getPropertyAnnotations(string|ReflectionProperty property, string|ReflectionClass class) Gets the annotations applied to a property. |
void | setAnnotationNamespaceAlias(mixed namespace, mixed alias, $alias ) Sets an alias for an annotation namespace. |
void | setDefaultAnnotationNamespace(string defaultNamespace) Sets the default namespace that the AnnotationReader should assume for annotations with not fully qualified names. |
public AnnotationReader(Cache cache)
Constructor. Initializes a new AnnotationReader that uses the given Cache provider.
public The getClassAnnotation(mixed class, string annotation, $class )
Gets a class annotation.
public array getClassAnnotations(string|ReflectionClass class)
Gets the annotations applied to a class.
public The getMethodAnnotation(ReflectionMethod method, string annotation)
Gets a method annotation.
public array getMethodAnnotations(mixed method, string|ReflectionClass class, string|ReflectionMethod property)
Gets the annotations applied to a method.
public The getPropertyAnnotation(ReflectionProperty property, string annotation)
Gets a property annotation.
public array getPropertyAnnotations(string|ReflectionProperty property, string|ReflectionClass class)
Gets the annotations applied to a property.
public void setAnnotationNamespaceAlias(mixed namespace, mixed alias, $alias )
Sets an alias for an annotation namespace.
public void setDefaultAnnotationNamespace(string defaultNamespace)
Sets the default namespace that the AnnotationReader should assume for annotations with not fully qualified names.
A reader for docblock annotations.