PHP Class Neos\Flow\Aop\Advice\AdviceChain

Datei anzeigen Open project: neos/flow-development-collection Class Usage Examples

Protected Properties

Property Type Description
$adviceIndex integer The number of the next advice which will be invoked on a proceed() call
$advices array An array of Advice objects which form the advice chain

Public Methods

Method Description
__construct ( array $advices ) Initializes the advice chain
proceed ( Neos\Flow\Aop\JoinPointInterface &$joinPoint ) : mixed An advice usually calls (but doesn't have to necessarily) this method in order to proceed with the next advice in the chain. If no advice is left in the chain, the proxy classes' method invokeJoinpoint() will finally be called.
rewind ( ) : void Re-initializes the index to start a new run through the advice chain

Method Details

__construct() public method

Initializes the advice chain
public __construct ( array $advices )
$advices array An array of AdviceInterface compatible objects which form the chain of advices

proceed() public method

An advice usually calls (but doesn't have to necessarily) this method in order to proceed with the next advice in the chain. If no advice is left in the chain, the proxy classes' method invokeJoinpoint() will finally be called.
public proceed ( Neos\Flow\Aop\JoinPointInterface &$joinPoint ) : mixed
$joinPoint Neos\Flow\Aop\JoinPointInterface The current join point (ie. the context)
return mixed Result of the advice or the original method of the target class

rewind() public method

Re-initializes the index to start a new run through the advice chain
public rewind ( ) : void
return void

Property Details

$adviceIndex protected_oe property

The number of the next advice which will be invoked on a proceed() call
protected int $adviceIndex
return integer

$advices protected_oe property

An array of Advice objects which form the advice chain
protected array $advices
return array