Demo\Aspect\DynamicMethodsAspect::beforeMagicStaticMethodExecution PHP Method

beforeMagicStaticMethodExecution() public method

This advice intercepts an execution of methods via __callStatic
public beforeMagicStaticMethodExecution ( Go\Aop\Intercept\MethodInvocation $invocation )
$invocation Go\Aop\Intercept\MethodInvocation
    public function beforeMagicStaticMethodExecution(MethodInvocation $invocation)
    {
        // we need to unpack args from invocation args
        list($methodName) = $invocation->getArguments();
        echo "Calling Magic Static Interceptor for method: ", $methodName, PHP_EOL;
    }