PHP Interface Go\Aop\Intercept\MethodInvocation

A method invocation is a joinpoint and can be intercepted by a method interceptor.
Inheritance: extends Go\Aop\Intercept\Invocation
Datei anzeigen Open project: goaop/framework Interface Usage Examples

Public Methods

Method Description
__invoke ( null | object | string $instance = null, array $arguments = [], array $variadicArguments = [] ) : mixed Invokes current method invocation with all interceptors
getMethod ( ) : ReflectionMetho\ReflectionMethod | AnnotatedReflectionMethod Gets the method being called.

Method Details

__invoke() public method

Invokes current method invocation with all interceptors
public __invoke ( null | object | string $instance = null, array $arguments = [], array $variadicArguments = [] ) : mixed
$instance null | object | string Invocation instance (class name for static methods)
$arguments array List of arguments for method invocation
$variadicArguments array Additional list of variadic arguments
return mixed Result of invocation

getMethod() public method

Gets the method being called.
public getMethod ( ) : ReflectionMetho\ReflectionMethod | AnnotatedReflectionMethod
return ReflectionMetho\ReflectionMethod | Go\Aop\Support\AnnotatedReflectionMethod the method being called.