__construct()
__construct(\Psr\Http\Message\StreamInterface $stream) : mixed
Parameters
\Psr\Http\Message\StreamInterface | $stream | Stream to decorate |
Stream decorator that prevents a stream from being seeked.
__get(string $name) : \Psr\Http\Message\StreamInterface
Magic method used to create a new stream if streams are not added in the constructor of a decorator (e.g., LazyOpenStream).
string | $name | Name of the property (allows "stream" only). |
seek(mixed $offset, mixed $whence = SEEK_SET) : mixed
Seek to a position in the stream.
mixed | $offset | Stream offset |
mixed | $whence | Specifies how the cursor position will be calculated
based on the seek offset. Valid values are identical to the built-in
PHP $whence values for |