![]() Server : Apache System : Linux server2.corals.io 4.18.0-348.2.1.el8_5.x86_64 #1 SMP Mon Nov 15 09:17:08 EST 2021 x86_64 User : corals ( 1002) PHP Version : 7.4.33 Disable Function : exec,passthru,shell_exec,system Directory : /home/corals/old/vendor/laminas/laminas-feed/src/Reader/Http/ |
<?php declare(strict_types=1); namespace Laminas\Feed\Reader\Http; use Psr\Http\Message\ResponseInterface as Psr7ResponseInterface; /** * ResponseInterface wrapper for a PSR-7 response. */ class Psr7ResponseDecorator implements HeaderAwareResponseInterface { private Psr7ResponseInterface $decoratedResponse; public function __construct(Psr7ResponseInterface $response) { $this->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); } }