public function buildBody($values, $key = null)
    {
        if (is_array($values)) {
            $this->body = array_merge($this->body, $values);
        } else {
            $this->body[$key] = $values;
        }
    }
public function buildBody($values, $key = null)
    {
        if (is_array($values)) {
            $this->body = array_merge($this->body, $values);
        } else {
            $this->body[$key] = $values;
        }
    }
public function buildBody ( $ values , $ key = null ) { if ( is_array ( $ values ) ) { $ this -> body = array_merge ( $ this -> body , $ values ) ; } else { $ this -> body [ $ key ] = $ values ; } }
Builds the body part of the request and adds it to the body array.

@param array|string $values
@param null         $key
Builds the body part of the request and adds it to the body array .