PHP Класс Go\Aop\Framework\AbstractMethodInvocation

Наследование: extends AbstractInvocation, implements Go\Aop\Intercept\MethodInvocation
Показать файл Открыть проект Примеры использования класса

Защищенные свойства (Protected)

Свойство Тип Описание
$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

Открытые методы

Метод Описание
__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.

Описание методов

__construct() публичный Метод

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() закрытый публичный Метод

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
Результат mixed Result of invocation

__toString() закрытый публичный Метод

Returns friendly description of this joinpoint
final public __toString ( ) : string
Результат string

getMethod() публичный Метод

Gets the method being called.
public getMethod ( ) : AnnotatedReflectionMethod
Результат Go\Aop\Support\AnnotatedReflectionMethod the method being called.

getStaticPart() публичный Метод

Returns the static part of this joinpoint.
public getStaticPart ( ) : object
Результат object

getThis() публичный Метод

Returns the object that holds the current joinpoint's static part.
public getThis ( ) : object | string
Результат object | string the object for dynamic call or string with name of scope

Описание свойств

$className защищенное свойство

Name of the invocation class
protected string $className
Результат string

$instance защищенное свойство

Instance of object for invoking or class name for static call
protected object|string $instance
Результат object | string

$reflectionMethod защищенное свойство

Instance of reflection method for class
protected ReflectionMethod $reflectionMethod
Результат ReflectionMethod