PHP 클래스 Go\Aop\Framework\AbstractMethodInvocation

상속: extends AbstractInvocation, implements Go\Aop\Intercept\MethodInvocation
파일 보기 프로젝트 열기: goaop/framework 1 사용 예제들

보호된 프로퍼티들

프로퍼티 타입 설명
$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