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

        if (empty($tokens['ORDER'])) return [];

        $headers = [];
        $orderQueryArr = array_map(function($order){
            $query = end($order['no_quotes']['parts']);
            if (empty($query)) return null;
            return !isset($order['direction']) ? $query : $query . ' ' . $order['direction'];
        },$tokens['ORDER']);
        array_push($headers, 'Order: '.implode(',',$orderQueryArr));
        return $headers;
    }
public static function create(array $tokens) {
        HashMap::assert($tokens, 'tokens');

        if (empty($tokens['ORDER'])) return [];

        $headers = [];
        $orderQueryArr = array_map(function($order){
            $query = end($order['no_quotes']['parts']);
            if (empty($query)) return null;
            return !isset($order['direction']) ? $query : $query . ' ' . $order['direction'];
        },$tokens['ORDER']);
        array_push($headers, 'Order: '.implode(',',$orderQueryArr));
        return $headers;
    }
public static function create ( array $ tokens ) { HashMap :: assert ( $ tokens , 'tokens' ) ; if ( empty ( $ tokens [ 'ORDER' ] ) ) return [ ] ; $ headers = [ ] ; $ orderQueryArr = array_map ( function ( $ order ) { $ query = end ( $ order [ 'no_quotes' ] [ 'parts' ] ) ; if ( empty ( $ query ) ) return null ; return ! isset ( $ order [ 'direction' ] ) ? $ query : $ query . ' ' . $ order [ 'direction' ] ; } , $ tokens [ 'ORDER' ] ) ; array_push ( $ headers , 'Order: ' . implode ( ',' , $ orderQueryArr ) ) ; return $ headers ; }
Returns Order header

@param  array $tokens
@return string

@SuppressWarnings("PHPMD.StaticAccess")
Returns Order header