public static function getQueryHash(\Closure $closure, $label = '')
    {
        $reflection = new \ReflectionFunction($closure);

        return md5($reflection->getFileName().$reflection->getStartLine().$reflection->getEndLine().$label);
    }
public static function getQueryHash(\Closure $closure, $label = '')
    {
        $reflection = new \ReflectionFunction($closure);

        return md5($reflection->getFileName().$reflection->getStartLine().$reflection->getEndLine().$label);
    }
public static function getQueryHash ( \ Closure $ closure , $ label = '' ) { $ reflection = new \ ReflectionFunction ( $ closure ) ; return md5 ( $ reflection -> getFileName ( ) . $ reflection -> getStartLine ( ) . $ reflection -> getEndLine ( ) . $ label ) ; }
Get the hash string of query closure.

@param \Closure $closure
@param string   $label

@return string
Get the hash string of query closure .