1362. Class

1362.1. Zend\Code\Annotation\Parser\DoctrineAnnotationParser

A parser for docblock annotations that utilizes the annotation parser from DoctrineCommon.

Consumes DoctrineCommonAnnotationsDocParser, 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.

1362.1.1. Methods

1362.1.1.1. __construct

__construct()

@var DocParser

1362.1.1.2. setDocParser

setDocParser()

Set the DocParser instance

Parameters:DocParser
Return type:DoctrineAnnotationParser

1362.1.1.3. getDocParser

getDocParser()

Retrieve the DocParser instance

If none is registered, lazy-loads a new instance.

Return type:DocParser

1362.1.1.4. onCreateAnnotation

onCreateAnnotation()

Handle annotation creation

Parameters:EventInterface
Return type:false|stdClass

1362.1.1.5. registerAnnotation

registerAnnotation()

Specify an allowed annotation class

Parameters:string
Return type:DoctrineAnnotationParser

1362.1.1.6. registerAnnotations

registerAnnotations()

Set many allowed annotations at once

Parameters:array|Traversable – Array or traversable object of annotation class names
Throws ExceptionInvalidArgumentException:
 
Return type:DoctrineAnnotationParser