headers = $headers; $this->clientTimeout = $clientTimeout; } /** * @return array */ public function getHeaders() { return $this->headers; } /** * @return array */ public function getHttpHeaders() { $headers = []; foreach ($this->headers as $header => $value) { $headers[] = sprintf("%s: %s", $header, $value); } return $headers; } /** * @param array $headers * * @return self */ public function setHeaders($headers) { $this->headers = $headers; return $this; } /** * @return int */ public function getClientTimeout() { return $this->clientTimeout; } /** * @param int $clientTimeout * * @return self */ public function setClientTimeout($clientTimeout) { $this->clientTimeout = $clientTimeout; return $this; } }