final public setCode(?int $code) : static
Sets the status code for the Response; a buffered equivalent of
http_response_code($code)
.
The method is fluent, allowing you to chain a call to another Response method.
final public getCode() : ?int
Returns the the status code for the response.