protected function getResolver()
    {
        if (! method_exists($this, 'resolve')) {
            return null;
        }

        $resolver = array($this, 'resolve');

        return function () use ($resolver) {
            $args = func_get_args();
            $result = call_user_func_array($resolver, $args);

            return $result;
        };
    }
protected function getResolver()
    {
        if (! method_exists($this, 'resolve')) {
            return null;
        }

        $resolver = array($this, 'resolve');

        return function () use ($resolver) {
            $args = func_get_args();
            $result = call_user_func_array($resolver, $args);

            return $result;
        };
    }
protected function getResolver ( ) { if ( ! method_exists ( $ this , 'resolve' ) ) { return null ; } $ resolver = array ( $ this , 'resolve' ) ; return function ( ) use ( $ resolver ) { $ args = func_get_args ( ) ; $ result = call_user_func_array ( $ resolver , $ args ) ; return $ result ; } ; }
Returns a closure callback to the resolve method. This method
will convert an invocation of this operation into a result or set of results.

Either implement {@see OperationResolver}, or add a callback resolver within
getAttributes() with the 'resolve' key.

@link https://github.com/webonyx/graphql-php#query-resolution
@see OperationResolver::resolve() for method signature.
@return \Closure|null
Returns a closure callback to the resolve method . This method will convert an invocation of this operation into a result or set of results .