ILIAS  release_5-4 Revision v5.4.26-12-gabc799a52e6
StreamFactoryInterface.php
Go to the documentation of this file.
1 <?php
2 
3 namespace Psr\Http\Message;
4 
6 {
16  public function createStream(string $content = ''): StreamInterface;
17 
33  public function createStreamFromFile(string $filename, string $mode = 'r'): StreamInterface;
34 
44  public function createStreamFromResource($resource): StreamInterface;
45 }
createStream(string $content='')
Create a new stream from a string.
$filename
Definition: buildRTE.php:89
createStreamFromResource($resource)
Create a new stream from an existing resource.
createStreamFromFile(string $filename, string $mode='r')
Create a stream from an existing file.
Describes a data stream.