Stream decorator trait
File Size: | 155 lines (3 kb) |
Included or required: | 0 times |
Referenced: | 0 times |
Includes or requires: | 0 files |
__construct(StreamInterface $stream) X-Ref |
param: StreamInterface $stream Stream to decorate |
__get(string $name) X-Ref |
Magic method used to create a new stream if streams are not added in the constructor of a decorator (e.g., LazyOpenStream). return: StreamInterface |
__toString() X-Ref |
No description |
getContents() X-Ref |
No description |
__call(string $method, array $args) X-Ref |
Allow decorators to implement custom methods return: mixed |
close() X-Ref |
No description |
getMetadata($key = null) X-Ref |
{@inheritdoc} return: mixed |
detach() X-Ref |
No description |
getSize() X-Ref |
No description |
eof() X-Ref |
No description |
tell() X-Ref |
No description |
isReadable() X-Ref |
No description |
isWritable() X-Ref |
No description |
isSeekable() X-Ref |
No description |
rewind() X-Ref |
No description |
seek($offset, $whence = SEEK_SET) X-Ref |
No description |
read($length) X-Ref |
No description |
write($string) X-Ref |
No description |
createStream() X-Ref |
Implement in subclasses to dynamically create streams when requested. |