Add a value to the list of header values
string $value Value to add:
string $header The exact header casing to add with. Defaults to the name of the header.:
public function add($value, $header = null) {
if (!$header) {
$header = $this
->getName();
}
if (!array_key_exists($header, $this->values)) {
$this->values[$header] = array(
$value,
);
}
else {
$this->values[$header][] = $value;
}
$this
->clearCache();
return $this;
}