PHP Class Go\Aop\Framework\ReflectionFunctionInvocation

Inheritance: extends AbstractInvocation, implements Go\Aop\Intercept\FunctionInvocation
Datei anzeigen Open project: goaop/framework

Protected Properties

Property Type Description
$reflectionFunction null | ReflectionFunctio\ReflectionFunction Instance of reflection function

Public Methods

Method Description
__construct ( string $functionName, array $advices ) Constructor for function invocation
__invoke ( array $arguments = [], array $variadicArguments = [] ) : mixed Invokes current function invocation with all interceptors
__toString ( ) : string Returns a friendly description of current joinpoint
getFunction ( ) : ReflectionFunction Gets the function being called.
getStaticPart ( ) : object Returns the static part of this joinpoint.
getThis ( ) : object | null Returns the object that holds the current joinpoint's static part.
proceed ( ) : mixed Invokes original function and return result from it

Method Details

__construct() public method

Constructor for function invocation
public __construct ( string $functionName, array $advices )
$functionName string Function to invoke
$advices array array List of advices for this invocation

__invoke() final public method

Invokes current function invocation with all interceptors
final public __invoke ( array $arguments = [], array $variadicArguments = [] ) : mixed
$arguments array List of arguments for function invocation
$variadicArguments array Additional list of variadic arguments
return mixed Result of invocation

__toString() final public method

Returns a friendly description of current joinpoint
final public __toString ( ) : string
return string

getFunction() public method

Gets the function being called.
public getFunction ( ) : ReflectionFunction
return ReflectionFunction the method being called.

getStaticPart() public method

Returns the static part of this joinpoint.
public getStaticPart ( ) : object
return object

getThis() public method

Returns the object that holds the current joinpoint's static part.
public getThis ( ) : object | null
return object | null the object (can be null if the accessible object is static).

proceed() public method

Invokes original function and return result from it
public proceed ( ) : mixed
return mixed

Property Details

$reflectionFunction protected_oe property

Instance of reflection function
protected null|ReflectionFunction,ReflectionFunctio $reflectionFunction
return null | ReflectionFunctio\ReflectionFunction