PHP Класс Demo\Aspect\DynamicMethodsAspect

Наследование: implements Go\Aop\Aspect
Показать файл Открыть проект

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

Метод Описание
beforeMagicMethodExecution ( Go\Aop\Intercept\MethodInvocation $invocation ) This advice intercepts an execution of __call methods
beforeMagicStaticMethodExecution ( Go\Aop\Intercept\MethodInvocation $invocation ) This advice intercepts an execution of methods via __callStatic

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

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

Unlike traditional "execution" pointcut, "dynamic" is checking the name of method in the runtime, allowing to write interceptors for __call more transparently.
public beforeMagicMethodExecution ( Go\Aop\Intercept\MethodInvocation $invocation )
$invocation Go\Aop\Intercept\MethodInvocation Invocation

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

This advice intercepts an execution of methods via __callStatic
public beforeMagicStaticMethodExecution ( Go\Aop\Intercept\MethodInvocation $invocation )
$invocation Go\Aop\Intercept\MethodInvocation