Aerys\StandardResponse::setReason PHP Method

setReason() public method

{@inheritDoc}
public setReason ( string $phrase ) : aerys\Response
$phrase string
return aerys\Response
    public function setReason(string $phrase) : Response
    {
        if ($this->state & self::STARTED) {
            throw new \LogicException("Cannot set reason phrase; output already started");
        }
        assert($this->isValidReasonPhrase($phrase), "Invalid reason phrase: {$phrase}");
        $this->headers[":reason"] = $phrase;
        return $this;
    }