PHP Класс Neos\Flow\Aop\Advice\AdviceChain

Показать файл Открыть проект Примеры использования класса

Защищенные свойства (Protected)

Свойство Тип Описание
$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

Открытые методы

Метод Описание
__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

Описание методов

__construct() публичный Метод

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

proceed() публичный Метод

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)
Результат mixed Result of the advice or the original method of the target class

rewind() публичный Метод

Re-initializes the index to start a new run through the advice chain
public rewind ( ) : void
Результат void

Описание свойств

$adviceIndex защищенное свойство

The number of the next advice which will be invoked on a proceed() call
protected int $adviceIndex
Результат integer

$advices защищенное свойство

An array of Advice objects which form the advice chain
protected array $advices
Результат array