class FlowAnotationReader implements Reader (View source)

Methods

__construct(ReflectionService $reflectionService)

No description

object[]
getClassAnnotations(ReflectionClass $class)

Gets the annotations applied to a class.

T|null
getClassAnnotation(ReflectionClass $class, T> $annotationName)

Gets a class annotation.

object[]
getMethodAnnotations(ReflectionMethod $method)

Gets the annotations applied to a method.

T|null
getMethodAnnotation(ReflectionMethod $method, T> $annotationName)

Gets a method annotation.

object[]
getPropertyAnnotations(ReflectionProperty $property)

Gets the annotations applied to a property.

T|null
getPropertyAnnotation(ReflectionProperty $property, T> $annotationName)

Gets a property annotation.

string
getUnproxiedClassName(string $className)

Returns the classname after stripping a potentially present Compiler::ORIGINAL_CLASSNAME_SUFFIX.

Details

__construct(ReflectionService $reflectionService)

No description

Parameters

ReflectionService $reflectionService

object[] getClassAnnotations(ReflectionClass $class)

Gets the annotations applied to a class.

Parameters

ReflectionClass $class

The ReflectionClass of the class from which the class annotations should be read.

Return Value

object[]

An array of Annotations.

T|null getClassAnnotation(ReflectionClass $class, T> $annotationName)

Gets a class annotation.

Parameters

ReflectionClass $class

The ReflectionClass of the class from which the class annotations should be read.

T> $annotationName

The name of the annotation.

Return Value

T|null

The Annotation or NULL, if the requested annotation does not exist.

object[] getMethodAnnotations(ReflectionMethod $method)

Gets the annotations applied to a method.

Parameters

ReflectionMethod $method

The ReflectionMethod of the method from which the annotations should be read.

Return Value

object[]

An array of Annotations.

T|null getMethodAnnotation(ReflectionMethod $method, T> $annotationName)

Gets a method annotation.

Parameters

ReflectionMethod $method

The ReflectionMethod to read the annotations from.

T> $annotationName

The name of the annotation.

Return Value

T|null

The Annotation or NULL, if the requested annotation does not exist.

object[] getPropertyAnnotations(ReflectionProperty $property)

Gets the annotations applied to a property.

Parameters

ReflectionProperty $property

The ReflectionProperty of the property from which the annotations should be read.

Return Value

object[]

An array of Annotations.

T|null getPropertyAnnotation(ReflectionProperty $property, T> $annotationName)

Gets a property annotation.

Parameters

ReflectionProperty $property

The ReflectionProperty to read the annotations from.

T> $annotationName

The name of the annotation.

Return Value

T|null

The Annotation or NULL, if the requested annotation does not exist.

protected string getUnproxiedClassName(string $className)

Returns the classname after stripping a potentially present Compiler::ORIGINAL_CLASSNAME_SUFFIX.

Parameters

string $className

Return Value

string