interface AdviceInterface (View source)

This is the interface for a generic AOP advice. It is never implemented directly.

In Flow all advices are implemented as interceptors.

Methods

mixed
invoke(JoinPointInterface $joinPoint)

Invokes the advice method

string
getAspectObjectName()

Returns the aspect's object name which has been passed to the constructor

string
getAdviceMethodName()

Returns the advice's method name which has been passed to the constructor

Details

mixed invoke(JoinPointInterface $joinPoint)

Invokes the advice method

Parameters

JoinPointInterface $joinPoint

The current join point which is passed to the advice method

Return Value

mixed

Optionally the result of the advice method

string getAspectObjectName()

Returns the aspect's object name which has been passed to the constructor

Return Value

string

The object name of the aspect

string getAdviceMethodName()

Returns the advice's method name which has been passed to the constructor

Return Value

string

The name of the advice method