/** * Set a header field. * * @param string $field */ public function setHeader($field) { $header = $this->header->splitField($field); if (false !== $header) { $this->header->setField($header['name'], $header['value']); } }