Demo\Aspect\FluentInterfaceAspect::aroundMethodExecution PHP Method

aroundMethodExecution() protected method

Fluent interface advice
protected aroundMethodExecution ( Go\Aop\Intercept\MethodInvocation $invocation ) : mixed | null | object
$invocation Go\Aop\Intercept\MethodInvocation
return mixed | null | object
    protected function aroundMethodExecution(MethodInvocation $invocation)
    {
        $result = $invocation->proceed();
        return $result !== null ? $result : $invocation->getThis();
    }
FluentInterfaceAspect