Oara\Curl\Access::getPostFields PHP Method

getPostFields() public method

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