for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace suda\framework\response\wrapper;
use suda\framework\Response;
use suda\framework\http\Stream;
use suda\framework\http\stream\StringStream;
use suda\framework\response\AbstractContentWrapper;
/**
* 响应包装器
*/
class NullContentWrapper extends AbstractContentWrapper
{
public function __construct()
parent::__construct(null, 'null');
}
* 获取内容
*
* @param Response $response
* @return Stream
public function getWrappedContent(Response $response): Stream
return new StringStream('');