final class Stream implements StreamInterface

Properties

protected string $content

Methods

static Stream
make(string $content)

Creates a Stream from string

__toString()

No description

close()

No description

detach()

No description

getSize()

No description

tell()

No description

eof()

No description

isSeekable()

No description

seek($offset, $whence = SEEK_SET)

No description

rewind()

No description

isWritable()

No description

write($string)

No description

isReadable()

No description

read($length)

No description

getContents()

No description

getMetadata($key = null)

No description

Details

at line 19
static Stream make(string $content)

Creates a Stream from string

Parameters

string $content

Return Value

Stream

at line 26
__toString()

at line 31
close()

at line 36
detach()

at line 41
getSize()

at line 46
tell()

at line 51
eof()

at line 56
isSeekable()

at line 61
seek($offset, $whence = SEEK_SET)

Parameters

$offset
$whence

at line 66
rewind()

at line 71
isWritable()

at line 76
write($string)

Parameters

$string

at line 81
isReadable()

at line 86
read($length)

Parameters

$length

at line 91
getContents()

at line 96
getMetadata($key = null)

Parameters

$key