public static function create(array $tokens, array $options = []) {
        HashMap::assert($tokens, 'tokens');

        $operation = SqlOperation::create($tokens);
        if ($operation !== SqlOperations::SELECT) return null;

        $query = implode('&', array_filter([
            self::createConditionals($tokens),
            self::createPagination($tokens, $options),
        ]));

        return $query;
    }
public static function create(array $tokens, array $options = []) {
        HashMap::assert($tokens, 'tokens');

        $operation = SqlOperation::create($tokens);
        if ($operation !== SqlOperations::SELECT) return null;

        $query = implode('&', array_filter([
            self::createConditionals($tokens),
            self::createPagination($tokens, $options),
        ]));

        return $query;
    }
public static function create ( array $ tokens , array $ options = [ ] ) { HashMap :: assert ( $ tokens , 'tokens' ) ; $ operation = SqlOperation :: create ( $ tokens ) ; if ( $ operation !== SqlOperations :: SELECT ) return null ; $ query = implode ( '&' , array_filter ( [ self :: createConditionals ( $ tokens ) , self :: createPagination ( $ tokens , $ options ) , ] ) ) ; return $ query ; }
Creates a http query string by using the WHERE
clause of the parsed sql tokens

@param  array $tokens
@param  array $options
@return string|null

@SuppressWarnings("PHPMD.StaticAccess")
Creates a http query string by using the WHERE clause of the parsed sql tokens