for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php declare(strict_types=1);
/**
* It's free open-source software released under the MIT License.
*
* @author Anatoly Nekhay <[email protected]>
* @copyright Copyright (c) 2018, Anatoly Nekhay
* @license https://github.com/sunrise-php/http-message/blob/master/LICENSE
* @link https://github.com/sunrise-php/http-message
*/
namespace Sunrise\Http\Message;
use Psr\Http\Message\ResponseFactoryInterface;
use Psr\Http\Message\ResponseInterface;
* @psalm-suppress ClassMustBeFinal
class ResponseFactory implements ResponseFactoryInterface
{
* @inheritDoc
public function createResponse(int $code = 200, string $reasonPhrase = ''): ResponseInterface
return new Response($code, $reasonPhrase);
}