public function getPostFields(array $data) { $return = array(); foreach ($data as $parameter) { $return[] = $parameter->getKey() . '=' . \urlencode($parameter->getValue()); } return implode('&', $return); }