Zend\Code\Annotation\Parser\DoctrineAnnotationParser
A parser for docblock annotations that utilizes the annotation parser from Doctrine\Common.
Consumes Doctrine\Common\Annotations\DocParser, and responds to events from
AnnotationManager. If the annotation examined is in the list of classes we
are interested in, the raw annotation is passed to the DocParser in order to
retrieve the annotation object instance. Otherwise, it is skipped.
Synopsis
class DoctrineAnnotationParser
implements
ParserInterface
{
- // members
- protected array $allowedAnnotations;
- protected DocParser $docParser;
- // methods
- public void __construct()
- public DoctrineAnnotationParser setDocParser()
- public DocParser getDocParser()
- public stdClass onCreateAnnotation()
- public DoctrineAnnotationParser registerAnnotation()
- public DoctrineAnnotationParser registerAnnotations()
Hierarchy
Implements
Members
protected
- $allowedAnnotations — array
- $docParser — Doctrine\Common\Annotations\DocParser
Methods
public
- __construct()
- getDocParser() — Retrieve the DocParser instance
- onCreateAnnotation() — Handle annotation creation
- registerAnnotation() — Specify an allowed annotation class
- registerAnnotations() — Set many allowed annotations at once
- setDocParser() — Set the DocParser instance