WordPress\AiClientDependencies\Psr\Http\Message

StreamFactoryInterface::createStreampublicWP 1.0

Create a new stream from a string.

The stream SHOULD be created with a temporary resource.

Method of the class: StreamFactoryInterface{}

No Hooks.

Returns

StreamInterface.

Usage

$StreamFactoryInterface = new StreamFactoryInterface();
$StreamFactoryInterface->createStream( $content ): StreamInterface;
$content(string)
String content with which to populate the stream.
Default: ''

StreamFactoryInterface::createStream() code WP 7.0

public function createStream(string $content = ''): StreamInterface;