YoastSEO_Vendor\GuzzleHttp\Psr7
PumpStream::__construct() public Yoast 1.0
{} Это метод класса: PumpStream{}
Хуков нет.
Возвращает
Null. Ничего.
Использование
$PumpStream = new PumpStream(); $PumpStream->__construct( $source, $options );
- $source(callable) (обязательный)
- Source of the stream data. The callable MAY accept an integer argument used to control the amount of data to return. The callable MUST return a string when called, or false on error or EOF.
- $options(массив)
Stream options:
- metadata: Hash of metadata to use with stream.
- size: Size of the stream, if known.
По умолчанию: []
Код PumpStream::__construct() PumpStream:: construct Yoast 15.6.2
public function __construct(callable $source, array $options = [])
{
$this->source = $source;
$this->size = isset($options['size']) ? $options['size'] : null;
$this->metadata = isset($options['metadata']) ? $options['metadata'] : [];
$this->buffer = new \YoastSEO_Vendor\GuzzleHttp\Psr7\BufferStream();
}