src/Traits/CallableTrait.php
public function call(Closure $callback = null, $caller = null)
    {
        if ($callback instanceof Closure) {
            // Make dependency injection possible
            $parameters = $this->resolveMethodDependencies(
                [$caller], new ReflectionFunction($callback)
            );
            call_user_func_array($callback, $parameters);
        }

        return $caller;
    }
public function call(Closure $callback = null, $caller = null)
    {
        if ($callback instanceof Closure) {
            // Make dependency injection possible
            $parameters = $this->resolveMethodDependencies(
                [$caller], new ReflectionFunction($callback)
            );
            call_user_func_array($callback, $parameters);
        }

        return $caller;
    }
public function call ( Closure $ callback = null , $ caller = null ) { if ( $ callback instanceof Closure ) { // Make dependency injection possible $ parameters = $ this -> resolveMethodDependencies ( [ $ caller ] , new ReflectionFunction ( $ callback ) ) ; call_user_func_array ( $ callback , $ parameters ) ; } return $ caller ; }
Preform a callback on this workbook instance.

@param callable $callback
@param null     $caller

@return $this
Preform a callback on this workbook instance .