JoinPointInterface
interface JoinPointInterface (View source)
Contract for a join point
Methods
Returns the reference to the proxy class instance
Returns the class name of the target class this join point refers to
Returns the method name of the method this join point refers to
Returns an array of arguments which have been passed to the target method
Returns the value of the specified method argument
Returns true if the argument with the specified name exists in the method call this joinpoint refers to.
Sets the value of the specified method argument
Returns the advice chain related to this join point
If an exception was thrown by the target method Only makes sense for After Throwing advices.
Returns the exception which has been thrown in the target method.
Returns the result of the method invocation. The result is only available for AfterReturning advices.
Details
ProxyInterface
getProxy()
Returns the reference to the proxy class instance
string
getClassName()
Returns the class name of the target class this join point refers to
string
getMethodName()
Returns the method name of the method this join point refers to
array
getMethodArguments()
Returns an array of arguments which have been passed to the target method
mixed
getMethodArgument(string $argumentName)
Returns the value of the specified method argument
bool
isMethodArgument(string $argumentName)
Returns true if the argument with the specified name exists in the method call this joinpoint refers to.
void
setMethodArgument(string $argumentName, mixed $argumentValue)
Sets the value of the specified method argument
AdviceChain
getAdviceChain()
Returns the advice chain related to this join point
bool
hasException()
If an exception was thrown by the target method Only makes sense for After Throwing advices.
Exception
getException()
Returns the exception which has been thrown in the target method.
If no exception has been thrown, NULL is returned. Only makes sense for After Throwing advices.
mixed
getResult()
Returns the result of the method invocation. The result is only available for AfterReturning advices.