4 * This file is part of the Symfony package.
6 * (c) Fabien Potencier <fabien@symfony.com>
8 * For the full copyright and license information, please view the LICENSE
9 * file that was distributed with this source code.
12 namespace Symfony\Bridge\PsrHttpMessage\Tests\Fixtures;
14 use Psr\Http\Message\ResponseInterface;
15 use Psr\Http\Message\StreamInterface;
18 * @author Kévin Dunglas <dunglas@gmail.com>
20 class Response extends Message implements ResponseInterface
24 public function __construct($version = '1.1', array $headers = array(), StreamInterface $body = null, $statusCode = 200)
26 parent::__construct($version, $headers, $body);
28 $this->statusCode = $statusCode;
31 public function getStatusCode()
33 return $this->statusCode;
36 public function withStatus($code, $reasonPhrase = '')
38 throw new \BadMethodCallException('Not implemented.');
41 public function getReasonPhrase()
43 throw new \BadMethodCallException('Not implemented.');