Provides a readable stream for a MessagePart.
- author Zaahid Bateson
CloneableInstantiable
- Children
- Implements
Psr\Http\Message\StreamInterface Stringable - Traits
| Methods |
| public __call(string $method, array $args) Allow decorators to implement custom methods
|
| public __construct(ZBateson |
| public __get(string $name) Magic method used to create a new stream if streams are not added in the constructor of a decorator (e.g., LazyOpenStream).
|
| public __toString() : string |
| public close() : void |
| public detach() |
| public eof() : bool |
| public getContents() : string |
public getMetadata( $key = NULL)
|
| public getSize() : ?int |
| public isReadable() : bool |
| public isSeekable() : bool |
| public isWritable() : bool |
| public read(int $length) : string Overridden to wrap exceptions in MessagePartReadException which provides 'getPart' to inspect the part the error occurs on.
|
| public rewind() : void |
| public seek( $offset, $whence = 0GuzzleHttp\Psr7\SEEK_SET) : void |
| public tell() : int |
| public write( $string) : int |
| Properties |
protected ZBateson
|
| protected ?Psr\Http\Message\StreamInterface $stream |
| Methods |
| protected createStream() : Psr\Http\Message\StreamInterface Implement in subclasses to dynamically create streams when requested.
|
| Methods |
| private decoratorRead( $length) : string |