WordPress\AiClientDependencies\Psr\Http\Message
StreamFactoryInterface::createStream
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() StreamFactoryInterface::createStream code WP 7.0
public function createStream(string $content = ''): StreamInterface;