26 $this->inner = $inner;
37 return $this->inner->getStatus();
51 return $this->inner->getStatusText();
68 $this->inner->setStatus($status);
81 return $this->inner->__toString();
This interface represents a HTTP response.
trait MessageDecoratorTrait
This trait contains a bunch of methods, shared by both the RequestDecorator and the ResponseDecorator...
getStatus()
Returns the current HTTP status code.
getStatusText()
Returns the human-readable status string.
__toString()
Serializes the request object as a string.
__construct(ResponseInterface $inner)
Constructor.
setStatus($status)
Sets the HTTP status code.