SimpleSoftwareIO\SMS\MakesRequests::buildBody PHP Метод

buildBody() публичный Метод

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