decoratedResponse = $response; } /** * Return the original PSR-7 response being decorated. * * @return Psr7ResponseInterface */ public function getDecoratedResponse() { return $this->decoratedResponse; } /** * {@inheritDoc} */ public function getBody() { return (string) $this->decoratedResponse->getBody(); } /** * {@inheritDoc} */ public function getStatusCode() { return $this->decoratedResponse->getStatusCode(); } /** * {@inheritDoc} */ public function getHeaderLine($name, $default = null) { if (! $this->decoratedResponse->hasHeader($name)) { return $default; } return $this->decoratedResponse->getHeaderLine($name); } }