Reads from multiple streams, one after the other.
This is a read-only stream decorator.
Cloneable
Final
Instantiable
-
Implements
Psr\Http\Message\StreamInterface Stringable
Methods |
public
__construct
(
array
$streams
=
[
]
)
|
public __toString () : string |
public
addStream
(
Psr\Http\Message\StreamInterface
$stream
) :
void
Add a stream to the AppendStream
|
public
close
() :
void
Closes each attached stream. |
public
detach
() Detaches each attached stream. Returns null as it's not clear which underlying stream resource to return. |
public eof () : bool |
public getContents () : string |
public
getMetadata
(
$key
=
NULL
)
|
public
getSize
() : ?
int
Tries to calculate the size by adding the size of each stream. If any of the streams do not return a valid number, then the size of the |
public isReadable () : bool |
public isSeekable () : bool |
public isWritable () : bool |
public
read
(
$length
) :
string
Reads from all of the appended streams until the length is met or EOF. |
public rewind () : void |
public
seek
(
$offset
,
$whence
=
0
GuzzleHttp\Psr7\SEEK_SET) :
void
Attempts to seek to the given position. Only supports SEEK_SET. |
public tell () : int |
public write ( $string ) : int |
Properties |
private
$current
|
private
$pos
|
private
$seekable
|
private
$streams
|