PHP Interface Neos\Flow\Aop\JoinPointInterface

Show file Open project: neos/flow-development-collection Interface Usage Examples

Public Methods

Method Description
getAdviceChain ( ) : AdviceChain Returns the advice chain related to this join point
getClassName ( ) : string Returns the class name of the target class this join point refers to
getException ( ) : Exception Returns the exception which has been thrown in the target method.
getMethodArgument ( string $argumentName ) : mixed Returns the value of the specified method argument
getMethodArguments ( ) : array Returns an array of arguments which have been passed to the target method
getMethodName ( ) : string Returns the method name of the method this join point refers to
getProxy ( ) : Neos\Flow\ObjectManagement\Proxy\ProxyInterface Returns the reference to the proxy class instance
getResult ( ) : mixed Returns the result of the method invocation. The result is only available for AfterReturning advices.
hasException ( ) : boolean If an exception was thrown by the target method Only makes sense for After Throwing advices.
isMethodArgument ( string $argumentName ) : boolean Returns TRUE if the argument with the specified name exists in the method call this joinpoint refers to.
setMethodArgument ( string $argumentName, mixed $argumentValue ) : void Sets the value of the specified method argument

Method Details

getAdviceChain() public method

Returns the advice chain related to this join point
public getAdviceChain ( ) : AdviceChain
return Neos\Flow\Aop\Advice\AdviceChain The advice chain

getClassName() public method

Returns the class name of the target class this join point refers to
public getClassName ( ) : string
return string The class name

getException() public method

If no exception has been thrown, NULL is returned. Only makes sense for After Throwing advices.
public getException ( ) : Exception
return Exception The exception thrown or NULL

getMethodArgument() public method

Returns the value of the specified method argument
public getMethodArgument ( string $argumentName ) : mixed
$argumentName string Name of the argument
return mixed Value of the argument

getMethodArguments() public method

Returns an array of arguments which have been passed to the target method
public getMethodArguments ( ) : array
return array Array of arguments

getMethodName() public method

Returns the method name of the method this join point refers to
public getMethodName ( ) : string
return string The method name

getProxy() public method

Returns the reference to the proxy class instance
public getProxy ( ) : Neos\Flow\ObjectManagement\Proxy\ProxyInterface
return Neos\Flow\ObjectManagement\Proxy\ProxyInterface

getResult() public method

Returns the result of the method invocation. The result is only available for AfterReturning advices.
public getResult ( ) : mixed
return mixed Result of the method invocation

hasException() public method

If an exception was thrown by the target method Only makes sense for After Throwing advices.
public hasException ( ) : boolean
return boolean

isMethodArgument() public method

Returns TRUE if the argument with the specified name exists in the method call this joinpoint refers to.
public isMethodArgument ( string $argumentName ) : boolean
$argumentName string Name of the argument to check
return boolean TRUE if the argument exists

setMethodArgument() public method

Sets the value of the specified method argument
public setMethodArgument ( string $argumentName, mixed $argumentValue ) : void
$argumentName string Name of the argument
$argumentValue mixed Value of the argument
return void