Pluggable annotation manager

Simply composes an EventManager. When createAnnotation() is called, it fires off an event of the same name, passing it the resolved annotation class, the annotation content, and the raw annotation string; the first listener to return an object will halt execution of the event, and that object will be returned as the annotation.

 Methods

Attach a parser to listen to the createAnnotation event

attach(\Zend\Code\Annotation\Parser\ParserInterface $parser) : \Zend\Code\Annotation\AnnotationManager

Create Annotation

createAnnotation(array $annotationData) : false | \stdClass

Parameters

$annotationData

array

Returns

false\stdClass

Retrieve event manager

getEventManager() : \Zend\EventManager\EventManagerInterface

Lazy loads an instance if none registered.

Returns

Set the event manager instance

setEventManager(\Zend\EventManager\EventManagerInterface $events) : \Zend\Code\Annotation\AnnotationManager

 Properties

 

 Constants

 

EVENT_CREATE_ANNOTATION

EVENT_CREATE_ANNOTATION