final class SimpleAnnotationReader implements Reader (View source)

internal  
 

Simple Annotation Reader.

Drupal adds its own version of DocParser and allows for ignoring common annotations.

Properties

protected $ignoredAnnotations

Methods

__construct()

Constructor.

void
addNamespace(string $namespace)

Adds a namespace in which we will look for annotations.

getClassAnnotations(ReflectionClass $class)

{@inheritDoc}

getMethodAnnotations(ReflectionMethod $method)

{@inheritDoc}

getPropertyAnnotations(ReflectionProperty $property)

{@inheritDoc}

getClassAnnotation(ReflectionClass $class, $annotationName)

{@inheritDoc}

getMethodAnnotation(ReflectionMethod $method, $annotationName)

{@inheritDoc}

getPropertyAnnotation(ReflectionProperty $property, $annotationName)

{@inheritDoc}

Details

__construct()

Constructor.

Initializes a new SimpleAnnotationReader.

void addNamespace(string $namespace)

Adds a namespace in which we will look for annotations.

Parameters

string $namespace

Return Value

void

getClassAnnotations(ReflectionClass $class)

{@inheritDoc}

Parameters

ReflectionClass $class

getMethodAnnotations(ReflectionMethod $method)

{@inheritDoc}

Parameters

ReflectionMethod $method

getPropertyAnnotations(ReflectionProperty $property)

{@inheritDoc}

Parameters

ReflectionProperty $property

getClassAnnotation(ReflectionClass $class, $annotationName)

{@inheritDoc}

Parameters

ReflectionClass $class
$annotationName

getMethodAnnotation(ReflectionMethod $method, $annotationName)

{@inheritDoc}

Parameters

ReflectionMethod $method
$annotationName

getPropertyAnnotation(ReflectionProperty $property, $annotationName)

{@inheritDoc}

Parameters

ReflectionProperty $property
$annotationName