PHP Class Neos\Flow\Aop\JoinPoint

Inheritance: implements Neos\Flow\Aop\JoinPointInterface
Mostrar archivo Open project: neos/flow-development-collection

Protected Properties

Property Type Description
$adviceChain Neos\Flow\Aop\Advice\AdviceChain The advice chain for this join point
$className string Class name of the target class this join point refers to
$exception Exception The exception thrown (only used for After Throwing advices)
$methodArguments array Array of method arguments which have been passed to the target method
$methodName string Method name of the target method which is about to or has been invoked
$proxy object A reference to the proxy object
$result mixed The result of the method invocations (only used for After Returning advices)

Public Methods

Method Description
__construct ( object $proxy, string $className, string $methodName, array $methodArguments, AdviceChain $adviceChain = null, mixed $result = null, Exception $exception = null ) Constructor, creates the join point
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 ( ) : mixed 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

__construct() public method

Constructor, creates the join point
public __construct ( object $proxy, string $className, string $methodName, array $methodArguments, AdviceChain $adviceChain = null, mixed $result = null, Exception $exception = null )
$proxy object Reference to the proxy class instance of the target class
$className string Class name of the target class this join point refers to
$methodName string Method name of the target method which is about to or has been invoked
$methodArguments array Array of method arguments which have been passed to the target method
$adviceChain Neos\Flow\Aop\Advice\AdviceChain The advice chain for this join point
$result mixed The result of the method invocations (only used for After Returning advices)
$exception Exception The exception thrown (only used for After Throwing advices)

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 ( ) : mixed
return mixed 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

Property Details

$adviceChain protected_oe property

The advice chain for this join point
protected AdviceChain,Neos\Flow\Aop\Advice $adviceChain
return Neos\Flow\Aop\Advice\AdviceChain

$className protected_oe property

Class name of the target class this join point refers to
protected string $className
return string

$exception protected_oe property

The exception thrown (only used for After Throwing advices)
protected Exception $exception
return Exception

$methodArguments protected_oe property

Array of method arguments which have been passed to the target method
protected array $methodArguments
return array

$methodName protected_oe property

Method name of the target method which is about to or has been invoked
protected string $methodName
return string

$proxy protected_oe property

A reference to the proxy object
protected object $proxy
return object

$result protected_oe property

The result of the method invocations (only used for After Returning advices)
protected mixed $result
return mixed