public static function getJoinPoint(string $functionName, array $advices): FunctionInvocation
    {
        static $accessor;

        if ($accessor === null) {
            $accessor = AspectKernel::getInstance()->getContainer()->get('aspect.advisor.accessor');
        }

        $filledAdvices = [];
        foreach ($advices as $advisorName) {
            $filledAdvices[] = $accessor->$advisorName;
        }

        return new ReflectionFunctionInvocation($functionName, $filledAdvices);
    }
public static function getJoinPoint(string $functionName, array $advices): FunctionInvocation
    {
        static $accessor;

        if ($accessor === null) {
            $accessor = AspectKernel::getInstance()->getContainer()->get('aspect.advisor.accessor');
        }

        $filledAdvices = [];
        foreach ($advices as $advisorName) {
            $filledAdvices[] = $accessor->$advisorName;
        }

        return new ReflectionFunctionInvocation($functionName, $filledAdvices);
    }
public static function getJoinPoint ( string $ functionName , array $ advices ) : FunctionInvocation { static $ accessor ; if ( $ accessor === null ) { $ accessor = AspectKernel :: getInstance ( ) -> getContainer ( ) -> get ( 'aspect.advisor.accessor' ) ; } $ filledAdvices = [ ] ; foreach ( $ advices as $ advisorName ) { $ filledAdvices [ ] = $ accessor -> $ advisorName ; } return new ReflectionFunctionInvocation ( $ functionName , $ filledAdvices ) ; }
Returns a joinpoint for specific function in the namespace

@param array $advices List of advices
Returns a joinpoint for specific function in the namespace