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
Afficher le fichier Open project: goaop/framework Interface Usage Examples

Méthodes publiques

Méthode 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 méthode

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
Résultat mixed Result of invocation

getMethod() public méthode

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