mediatekformation

DoctrineAnnotationParser
in package
implements ParserInterface

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.

Interfaces, Classes, Traits and Enums

ParserInterface

Table of Contents

$allowedAnnotations  : array<string|int, mixed>
$docParser  : DocParser
__construct()  : mixed
getDocParser()  : DocParser
Retrieve the DocParser instance
onCreateAnnotation()  : false|stdClass
Handle annotation creation
registerAnnotation()  : DoctrineAnnotationParser
Specify an allowed annotation class
registerAnnotations()  : DoctrineAnnotationParser
Set many allowed annotations at once
setDocParser()  : DoctrineAnnotationParser
Set the DocParser instance

Properties

$allowedAnnotations

protected array<string|int, mixed> $allowedAnnotations = []

Annotation classes we support on this iteration

Methods

Search results