for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace DMT\Aura\Psr\Factory;
use DMT\Aura\Psr\Message\Response;
use Psr\Http\Message\ResponseFactoryInterface;
use Psr\Http\Message\ResponseInterface;
/**
* Class ResponseFactory
*
* @package DMT\Aura\Psr\Factory
*/
class ResponseFactory implements ResponseFactoryInterface
{
* Create a new response.
* @param int $code HTTP status code.
* @param string $reasonPhrase Reason phrase to associate with status code.
* @return ResponseInterface
public function createResponse(int $code = 200, string $reasonPhrase = ''): ResponseInterface
return new Response($code, $reasonPhrase);
}