src/Definition/Definition.php
protected function invokeMethods($instance)
    {
        foreach ($this->methods as $method) {
            $args = $this->resolveArguments($method['arguments']);
            call_user_func_array([$instance, $method['method']], $args);
        }

        return $instance;
    }
protected function invokeMethods($instance)
    {
        foreach ($this->methods as $method) {
            $args = $this->resolveArguments($method['arguments']);
            call_user_func_array([$instance, $method['method']], $args);
        }

        return $instance;
    }
protected function invokeMethods ( $ instance ) { foreach ( $ this -> methods as $ method ) { $ args = $ this -> resolveArguments ( $ method [ 'arguments' ] ) ; call_user_func_array ( [ $ instance , $ method [ 'method' ] ] , $ args ) ; } return $ instance ; }
Invoke methods on resolved instance.

@param object $instance

@return object
Invoke methods on resolved instance .