for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
declare(strict_types=1);
namespace Uxmp\Core\Api\Lib\Message;
use Psr\Http\Message\ResponseFactoryInterface;
use Psr\Http\Message\ResponseInterface;
/**
* ResponseFactory implementation
*/
final class ResponseFactory implements ResponseFactoryInterface
{
public function createResponse(
int $code = 200,
string $reasonPhrase = ''
): ResponseInterface {
return new JsonEnabledResponse(
$code,
[],
null,
'1.1',
$reasonPhrase
);
}