WordPress\AiClientDependencies\Psr\Http\Message

StreamFactoryInterface::createStreamFromResource │ public │ WP 1.0

Create a new stream from an existing resource.

The stream MUST be readable and may be writable.

Метод класса: StreamFactoryInterface{}

Хуков нет.

Возвращает

StreamInterface.

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

$StreamFactoryInterface = new StreamFactoryInterface();
$StreamFactoryInterface->createStreamFromResource( $resource ): StreamInterface;
$resource(resource) (обязательный)
PHP resource to use as basis of stream.

Код StreamFactoryInterface::createStreamFromResource() WP 7.1.4

public function createStreamFromResource($resource): StreamInterface;