SDK for PHP 3.x

PsrStream
in package
implements StreamInterface Uses StreamDecoratorTrait

Adapts a Guzzle 5 Stream to a PSR-7 Stream.

Tags
codeCoverageIgnore

Table of Contents

Interfaces

StreamInterface
Describes a data stream.

Methods

__construct()  : mixed
getContents()  : string
Returns the remaining contents in a string
rewind()  : mixed
Seek to the beginning of the stream.

Methods

__construct()

public __construct(StreamInterface $stream) : mixed
Parameters
$stream : StreamInterface

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).

On this page