ParserInterface
in
Table of Contents
- onCreateAnnotation() : false|stdClass
- Respond to the "createAnnotation" event
- registerAnnotation() : void
- Register an annotation this parser will accept
- registerAnnotations() : void
- Register multiple annotations this parser will accept
Methods
onCreateAnnotation()
Respond to the "createAnnotation" event
public
onCreateAnnotation(EventInterface $e) : false|stdClass
Parameters
- $e : EventInterface
Return values
false|stdClass —registerAnnotation()
Register an annotation this parser will accept
public
registerAnnotation(mixed $annotation) : void
Parameters
- $annotation : mixed
Return values
void —registerAnnotations()
Register multiple annotations this parser will accept
public
registerAnnotations(array<string|int, mixed>|Traversable $annotations) : void
Parameters
- $annotations : array<string|int, mixed>|Traversable