public function setHeader($header, $value) { if (is_array($value)) { $value = implode(';', $value); } $this->headers[$header] = $value; }