CallbackStream
final class CallbackStream implements StreamInterface (View source)
Methods
__construct(Closure $producer)
from(callable $producer)
string
close()
void
detach()
getSize()
int|null
tell()
int
eof()
bool
bool
seek(int $offset, int $whence = SEEK_SET)
void
rewind()
void
bool
write(string $string)
int
bool
read(int $length)
string
string
getMetadata(string|null $key = null)
mixed
Details
__toString
string
__toString()
No description
close
void
close()
No description
detach
detach()
No description
getSize
int|null
getSize()
No description
tell
int
tell()
No description
eof
bool
eof()
No description
isSeekable
bool
isSeekable()
No description
seek
void
seek(int $offset, int $whence = SEEK_SET)
No description
rewind
void
rewind()
No description
isWritable
bool
isWritable()
No description
write
int
write(string $string)
No description
isReadable
bool
isReadable()
No description
read
string
read(int $length)
No description
getContents
string
getContents()
No description
getMetadata
mixed
getMetadata(string|null $key = null)
No description