PHP Class Go\Core\IntroductionAspectExtension

Inheritance: extends AbstractAspectLoaderExtension
Datei anzeigen Open project: goaop/framework

Public Methods

Method Description
getKind ( ) : string Introduction aspect loader works with annotations from aspect
getTarget ( ) : string | array Introduction aspect loader works only with properties of aspect
load ( Go\Aop\Aspect $aspect, mixed | ReflectionClass | ReflectionMethod | ReflectionProperty $reflection, mixed | null $metaInformation = null ) : array | Go\Aop\Pointcut[] | Go\Aop\Advisor[] Loads definition from specific point of aspect into the container
supports ( Go\Aop\Aspect $aspect, mixed | ReflectionClass | ReflectionMethod | ReflectionProperty $reflection, mixed | null $metaInformation = null ) : boolean Checks if loader is able to handle specific point of aspect

Method Details

getKind() public method

For extension that works with annotations additional metaInformation will be passed
public getKind ( ) : string
return string

getTarget() public method

Introduction aspect loader works only with properties of aspect
public getTarget ( ) : string | array
return string | array

load() public method

Loads definition from specific point of aspect into the container
public load ( Go\Aop\Aspect $aspect, mixed | ReflectionClass | ReflectionMethod | ReflectionProperty $reflection, mixed | null $metaInformation = null ) : array | Go\Aop\Pointcut[] | Go\Aop\Advisor[]
$aspect Go\Aop\Aspect Instance of aspect
$reflection mixed | ReflectionClass | ReflectionMethod | ReflectionProperty Reflection of point
$metaInformation mixed | null Additional meta-information
return array | Go\Aop\Pointcut[] | Go\Aop\Advisor[]

supports() public method

Checks if loader is able to handle specific point of aspect
public supports ( Go\Aop\Aspect $aspect, mixed | ReflectionClass | ReflectionMethod | ReflectionProperty $reflection, mixed | null $metaInformation = null ) : boolean
$aspect Go\Aop\Aspect Instance of aspect
$reflection mixed | ReflectionClass | ReflectionMethod | ReflectionProperty Reflection of point
$metaInformation mixed | null Additional meta-information, e.g. annotation for method
return boolean true if extension is able to create an advisor from reflection and metaInformation