PHP Класс Demo\Aspect\FluentInterfaceAspect

Basically, it uses around method to intercept all public setters in the class that implements special marker interface FluentInterface. Then it checks the return value for setter, if it's null, then advice replaces it with reference to the object "$this".
См. также: http://go.aopphp.com/blog/2013/03/19/implementing-fluent-interface-pattern-in-php/
Наследование: implements Go\Aop\Aspect
Показать файл Открыть проект

Защищенные методы

Метод Описание
aroundMethodExecution ( Go\Aop\Intercept\MethodInvocation $invocation ) : mixed | null | object Fluent interface advice

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

aroundMethodExecution() защищенный Метод

Fluent interface advice
protected aroundMethodExecution ( Go\Aop\Intercept\MethodInvocation $invocation ) : mixed | null | object
$invocation Go\Aop\Intercept\MethodInvocation
Результат mixed | null | object