Zend\Code\Annotation\Parser\GenericAnnotationParser
Generic annotation parser
Expects registration of AnnotationInterface instances. Such instances
will be passed annotation content to their initialize() method, which
they are then responsible for parsing.
Synopsis
class GenericAnnotationParser
implements
ParserInterface
{
- // members
- protected array $aliases;
- protected array $annotationNames;
- protected array $annotations;
- // methods
- public false|AnnotationInterface onCreateAnnotation()
- public GenericAnnotationParser registerAnnotation()
- public GenericAnnotationParser registerAnnotations()
- public bool hasAnnotation()
- public GenericAnnotationParser setAlias()
- protected string normalizeAlias()
- protected bool hasAlias()
- protected string resolveAlias()
Hierarchy
Implements
Members
protected
- $aliases — array
- $annotationNames — array
- $annotations — array
Methods
protected
- hasAlias() — Do we have an alias by the provided name?
- normalizeAlias() — Normalize an alias name
- resolveAlias() — Resolve an alias to a class name
public
- hasAnnotation() — Checks if the manager has annotations for a class
- onCreateAnnotation() — Listen to onCreateAnnotation, and attempt to return an annotation object instance.
- registerAnnotation() — Register annotations
- registerAnnotations() — Register many annotations at once
- setAlias() — Alias an annotation name