WordPress как на ладони
Недорогой хостинг для сайтов на WordPress: wordpress.jino.ru Платформа для конвертации и монетизации трафика
функция не описана

YoastSEO_Vendor\GuzzleHttp\Psr7

Stream::__construct() public Yoast 1.0

This constructor accepts an associative array of options.

  • size: (int) If a read stream would otherwise have an indeterminate size, but the size is known due to foreknowledge, then you can provide that size, in bytes.
  • metadata: (array) Any additional metadata to return when the metadata of the stream is accessed.

{} Это метод класса: Stream{}

Хуков нет.

Возвращает

Null. Ничего.

Использование

$Stream = new Stream();
$Stream->__construct( $stream, $options );
$stream(resource) (обязательный)
Stream resource to wrap.
$options(массив)
Associative array of options.
По умолчанию: []

Код Stream::__construct() Yoast 15.3

<?php
public function __construct($stream, $options = [])
{
    if (!\is_resource($stream)) {
        throw new \InvalidArgumentException('Stream must be a resource');
    }
    if (isset($options['size'])) {
        $this->size = $options['size'];
    }
    $this->customMetadata = isset($options['metadata']) ? $options['metadata'] : [];
    $this->stream = $stream;
    $meta = \stream_get_meta_data($this->stream);
    $this->seekable = $meta['seekable'];
    $this->readable = isset(self::$readWriteHash['read'][$meta['mode']]);
    $this->writable = isset(self::$readWriteHash['write'][$meta['mode']]);
    $this->uri = $this->getMetadata('uri');
}