Class Stream
Represents a data stream as defined in PSR-7.
- Slim\Http\Stream implements Psr\Http\Message\StreamInterface
Direct known subclasses
Indirect known subclasses
Namespace: Slim\Http
Link: https://github.com/php-fig/http-message/blob/master/src/StreamInterface.php
Located at Http/Stream.php
Link: https://github.com/php-fig/http-message/blob/master/src/StreamInterface.php
Located at Http/Stream.php
Methods summary
public
|
|
public
array|mixed|null
|
#
getMetadata( string $key = null )
Get stream metadata as an associative array or retrieve a specific key. |
protected
boolean
|
|
protected
|
|
public
resource|null
|
|
public
string
|
|
public
|
|
public
integer|null
|
|
public
integer
|
|
public
boolean
|
|
public
boolean
|
|
public
boolean
|
|
public
boolean
|
|
public
|
|
public
|
|
public
string
|
|
public
integer
|
|
public
string
|
|
public
boolean
|
Constants summary
integer |
FSTAT_MODE_S_IFIFO
Bit mask to determine if the stream is a pipe |
#
0010000
|
Properties summary
protected static
array
|
$modes
Resource modes |
#
[
'readable' => ['r', 'r+', 'w+', 'a+', 'x+', 'c+'],
'writable' => ['r+', 'w', 'w+', 'a', 'a+', 'x', 'x+', 'c', 'c+'],
]
|
protected
resource
|
$stream
The underlying stream resource |
|
protected
array
|
$meta
Stream metadata |
|
protected
boolean
|
$readable
Is this stream readable? |
|
protected
boolean
|
$writable
Is this stream writable? |
|
protected
boolean
|
$seekable
Is this stream seekable? |
|
protected
null|integer
|
$size
The size of the stream if known |
|
protected
boolean
|
$isPipe
Is this stream a pipe? |