public function setReasonPhrase($phrase = null)
{
if ($phrase !== null) {
$this->reason_phrase = $phrase;
return $this;
}
if (null !== self::PHRASES[$this->status_code]) {
$this->reason_phrase = self::PHRASES[$this->status_code];
return $this;
}
throw new \InvalidArgumentException("Invalid status code '{$this->status_code}'");
}