YoastSEO_Vendor\GuzzleHttp\Psr7
CachingStream::__construct() public Yoast 1.0
We will treat the buffer object as the body of the stream
{} Это метод класса: CachingStream{}
Хуков нет.
Возвращает
Null. Ничего.
Использование
$CachingStream = new CachingStream(); $CachingStream->__construct( \YoastSEO_Vendor\Psr\Http\Message\StreamInterface $stream, \YoastSEO_Vendor\Psr\Http\Message\StreamInterface $target );
- $stream(Streamчислоerface) (обязательный)
- Stream to cache
- $target(Streamчислоerface) (обязательный)
- Optionally specify where data is cached
Код CachingStream::__construct() CachingStream:: construct Yoast 15.6.2
public function __construct(\YoastSEO_Vendor\Psr\Http\Message\StreamInterface $stream, \YoastSEO_Vendor\Psr\Http\Message\StreamInterface $target = null)
{
$this->remoteStream = $stream;
$this->stream = $target ?: new \YoastSEO_Vendor\GuzzleHttp\Psr7\Stream(\fopen('php://temp', 'r+'));
}