public function proceed()
    {
        if (isset($this->advices[$this->current])) {
            $currentInterceptor = $this->advices[$this->current++];

            return $currentInterceptor->invoke($this);
        }

        // Rebind the closure if scope (class name) was changed since last time
        if ($this->previousScope !== $this->instance) {
            if ($this->closureToCall === null) {
                $this->closureToCall = static::getStaticInvoker($this->className, $this->reflectionMethod->name);
            }
            $this->closureToCall = $this->closureToCall->bindTo(null, $this->instance);
            $this->previousScope = $this->instance;
        }

        return ($this->closureToCall)($this->arguments);

    }
public function proceed()
    {
        if (isset($this->advices[$this->current])) {
            $currentInterceptor = $this->advices[$this->current++];

            return $currentInterceptor->invoke($this);
        }

        // Rebind the closure if scope (class name) was changed since last time
        if ($this->previousScope !== $this->instance) {
            if ($this->closureToCall === null) {
                $this->closureToCall = static::getStaticInvoker($this->className, $this->reflectionMethod->name);
            }
            $this->closureToCall = $this->closureToCall->bindTo(null, $this->instance);
            $this->previousScope = $this->instance;
        }

        return ($this->closureToCall)($this->arguments);

    }
public function proceed ( ) { if ( isset ( $ this -> advices [ $ this -> current ] ) ) { $ currentInterceptor = $ this -> advices [ $ this -> current ++ ] ; return $ currentInterceptor -> invoke ( $ this ) ; } // Rebind the closure if scope (class name) was changed since last time if ( $ this -> previousScope !== $ this -> instance ) { if ( $ this -> closureToCall === null ) { $ this -> closureToCall = static :: getStaticInvoker ( $ this -> className , $ this -> reflectionMethod -> name ) ; } $ this -> closureToCall = $ this -> closureToCall -> bindTo ( null , $ this -> instance ) ; $ this -> previousScope = $ this -> instance ; } return ( $ this -> closureToCall ) ( $ this -> arguments ) ; }
Proceeds all registered advices for the static method and returns an invocation result
Proceeds all registered advices for the static method and returns an invocation result