PHP Class Go\Aop\Framework\AbstractMethodInvocation

Inheritance: extends AbstractInvocation, implements Go\Aop\Intercept\MethodInvocation
Show file Open project: goaop/framework Class Usage Examples

Protected Properties

Property Type Description
$className string Name of the invocation class
$instance object | string Instance of object for invoking or class name for static call
$reflectionMethod ReflectionMethod Instance of reflection method for class

Public Methods

Method Description
__construct ( string $className, string $methodName, array $advices ) Constructor for method invocation
__invoke ( null | object | string $instance = null, array $arguments = [], array $variadicArguments = [] ) : mixed Invokes current method invocation with all interceptors
__toString ( ) : string Returns friendly description of this joinpoint
getMethod ( ) : AnnotatedReflectionMethod Gets the method being called.
getStaticPart ( ) : object Returns the static part of this joinpoint.
getThis ( ) : object | string Returns the object that holds the current joinpoint's static part.

Method Details

__construct() public method

Constructor for method invocation
public __construct ( string $className, string $methodName, array $advices )
$className string Class name
$methodName string Method to invoke
$advices array array List of advices for this invocation

__invoke() final public method

Invokes current method invocation with all interceptors
final 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

__toString() final public method

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

getMethod() public method

Gets the method being called.
public getMethod ( ) : AnnotatedReflectionMethod
return Go\Aop\Support\AnnotatedReflectionMethod 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 | string
return object | string the object for dynamic call or string with name of scope

Property Details

$className protected property

Name of the invocation class
protected string $className
return string

$instance protected property

Instance of object for invoking or class name for static call
protected object|string $instance
return object | string

$reflectionMethod protected property

Instance of reflection method for class
protected ReflectionMethod $reflectionMethod
return ReflectionMethod