private function serializeComponents(array $components): string
    {
        return implode('|', array_map(function ($name, $value) {
            return sprintf('%s:%s', $name, $value);
        }, array_keys($components), $components));
    }
private function serializeComponents(array $components): string
    {
        return implode('|', array_map(function ($name, $value) {
            return sprintf('%s:%s', $name, $value);
        }, array_keys($components), $components));
    }
private function serializeComponents ( array $ components ) : string { return implode ( '|' , array_map ( function ( $ name , $ value ) { return sprintf ( '%s:%s' , $ name , $ value ) ; } , array_keys ( $ components ) , $ components ) ) ; }
Serialize the component query parameter.

@param array $components

@return string
Serialize the component query parameter .