MIOLO20
|
Membros públicos | |
__construct (Cache $cache=null, Parser $parser=null) | |
setDefaultAnnotationNamespace ($defaultNamespace) | |
setAnnotationCreationFunction (Closure $func) | |
setAnnotationNamespaceAlias ($namespace, $alias) | |
setAutoloadAnnotations ($bool) | |
getAutoloadAnnotations () | |
getClassAnnotations (ReflectionClass $class) | |
getClassAnnotation (ReflectionClass $class, $annotation) | |
getPropertyAnnotations (ReflectionProperty $property) | |
getPropertyAnnotation (ReflectionProperty $property, $annotation) | |
getMethodAnnotations (ReflectionMethod $method) | |
getMethodAnnotation (ReflectionMethod $method, $annotation) | |
Constructor. Initializes a new AnnotationReader that uses the given Cache provider.
Cache | $cache | The cache provider to use. If none is provided, ArrayCache is used. |
Parser | $parser | The parser to use. If none is provided, the default parser is used. |
Definido na linha 67 do ficheiro AnnotationReader.php.
getAutoloadAnnotations | ( | ) |
Gets a flag whether to try to autoload annotation classes.
Definido na linha 132 do ficheiro AnnotationReader.php.
getClassAnnotation | ( | ReflectionClass | $class, |
$annotation ) |
Gets a class annotation.
$class | ||
string | $annotation | The name of the annotation. |
Definido na linha 166 do ficheiro AnnotationReader.php.
getClassAnnotations | ( | ReflectionClass | $class | ) |
Gets the annotations applied to a class.
string | ReflectionClass | $class | The name or ReflectionClass of the class from which the class annotations should be read. |
Definido na linha 144 do ficheiro AnnotationReader.php.
getMethodAnnotation | ( | ReflectionMethod | $method, |
$annotation ) |
Gets a method annotation.
ReflectionMethod | $method | |
string | $annotation | The name of the annotation. |
Definido na linha 242 do ficheiro AnnotationReader.php.
getMethodAnnotations | ( | ReflectionMethod | $method | ) |
Gets the annotations applied to a method.
string | ReflectionClass | $class | The name or ReflectionClass of the class that owns the method. |
string | ReflectionMethod | $property | The name or ReflectionMethod of the method from which the annotations should be read. |
Definido na linha 219 do ficheiro AnnotationReader.php.
getPropertyAnnotation | ( | ReflectionProperty | $property, |
$annotation ) |
Gets a property annotation.
ReflectionProperty | $property | |
string | $annotation | The name of the annotation. |
Definido na linha 204 do ficheiro AnnotationReader.php.
getPropertyAnnotations | ( | ReflectionProperty | $property | ) |
Gets the annotations applied to a property.
string | ReflectionClass | $class | The name or ReflectionClass of the class that owns the property. |
string | ReflectionProperty | $property | The name or ReflectionProperty of the property from which the annotations should be read. |
Definido na linha 181 do ficheiro AnnotationReader.php.
setAnnotationCreationFunction | ( | Closure | $func | ) |
Sets the custom function to use for creating new annotations on the underlying parser.
The function is supplied two arguments. The first argument is the name of the annotation and the second argument an array of values for this annotation. The function is assumed to return an object or NULL. Whenever the function returns NULL for an annotation, the implementation falls back to the default annotation creation process of the underlying parser.
Closure | $func |
Definido na linha 96 do ficheiro AnnotationReader.php.
setAnnotationNamespaceAlias | ( | $namespace, | |
$alias ) |
Sets an alias for an annotation namespace.
$namespace | |
$alias |
Definido na linha 107 do ficheiro AnnotationReader.php.
setAutoloadAnnotations | ( | $bool | ) |
Sets a flag whether to try to autoload annotation classes, as well as to distinguish between what is an annotation and what not by triggering autoloading.
NOTE: Autoloading of annotation classes is inefficient and requires silently failing autoloaders. In particular, setting this option to TRUE renders this AnnotationReader incompatible with a ClassLoader
.
boolean | $bool | Boolean flag. |
Definido na linha 121 do ficheiro AnnotationReader.php.
setDefaultAnnotationNamespace | ( | $defaultNamespace | ) |
Sets the default namespace that the AnnotationReader should assume for annotations with not fully qualified names.
string | $defaultNamespace |
Definido na linha 79 do ficheiro AnnotationReader.php.