for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
declare(strict_types=1);
namespace HttpSoft\Response;
use HttpSoft\Message\Stream;
use Psr\Http\Message\ResponseInterface;
final class EmptyResponse implements ResponseInterface, ResponseStatusCodeInterface
{
use ResponseExtensionTrait;
/**
* @param int $code
* @param array $headers
* @param string $protocol
* @param string $reasonPhrase
*/
public function __construct(
int $code = self::STATUS_NO_CONTENT,
array $headers = [],
string $protocol = '1.1',
string $reasonPhrase = ''
) {
$this->init($code, $reasonPhrase, $headers, new Stream('php://temp', 'r'), $protocol);
}