PsrStream
in package
implements
StreamInterface
Uses
StreamDecoratorTrait
Adapts a Guzzle 5 Stream to a PSR-7 Stream.
Tags
Interfaces, Classes and Traits
- StreamInterface
- Describes a data stream.
Table of Contents
- $stream : StreamInterface
- __construct() : mixed
- getContents() : string
- Returns the remaining contents in a string
- rewind() : mixed
- Seek to the beginning of the stream.
Properties
$stream
private
StreamInterface
$stream
Methods
__construct()
public
__construct(StreamInterface $stream) : mixed
Parameters
- $stream : StreamInterface
Return values
mixed —getContents()
Returns the remaining contents in a string
public
getContents() : string
Return values
string —rewind()
Seek to the beginning of the stream.
public
rewind() : mixed
If the stream is not seekable, this method will raise an exception; otherwise, it will perform a seek(0).