91. Class

91.1. Zend\Code\Annotation\AnnotationManager

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.

91.1.1. Methods

91.1.1.1. setEventManager

setEventManager()

Set the event manager instance

Parameters:EventManagerInterface
Return type:AnnotationManager

91.1.1.2. getEventManager

getEventManager()

Retrieve event manager

Lazy loads an instance if none registered.

Return type:EventManagerInterface

91.1.1.3. attach

attach()

Attach a parser to listen to the createAnnotation event

Parameters:ParserInterface
Return type:AnnotationManager

91.1.1.4. createAnnotation

createAnnotation()

Create Annotation

Parameters:array
Return type:false|stdClass

91.1.2. Constants

91.1.2.1. EVENT_CREATE_ANNOTATION