class NoSeekStream
Stream decorator that prevents a stream from being seeked.
Hierarchy
- class \GuzzleHttp\Psr7\NoSeekStream implements \Psr\Http\Message\StreamInterface uses \GuzzleHttp\Psr7\StreamDecoratorTrait
Expanded class hierarchy of NoSeekStream
File
-
vendor/
guzzlehttp/ psr7/ src/ NoSeekStream.php, line 12
Namespace
GuzzleHttp\Psr7View source
final class NoSeekStream implements StreamInterface {
use StreamDecoratorTrait;
/** @var StreamInterface */
private $stream;
public function seek($offset, $whence = SEEK_SET) : void {
throw new \RuntimeException('Cannot seek a NoSeekStream');
}
public function isSeekable() : bool {
return false;
}
}
Members
Title Sort descending | Modifiers | Object type | Summary | Overriden Title | Overrides |
---|---|---|---|---|---|
NoSeekStream::$stream | private | property | @var StreamInterface | ||
NoSeekStream::isSeekable | public | function | Returns whether or not the stream is seekable. | Overrides StreamDecoratorTrait::isSeekable | |
NoSeekStream::seek | public | function | Seek to a position in the stream. | Overrides StreamDecoratorTrait::seek | |
StreamDecoratorTrait::close | public | function | 1 | ||
StreamDecoratorTrait::createStream | protected | function | Implement in subclasses to dynamically create streams when requested. | 2 | |
StreamDecoratorTrait::detach | public | function | |||
StreamDecoratorTrait::eof | public | function | 2 | ||
StreamDecoratorTrait::getContents | public | function | |||
StreamDecoratorTrait::getMetadata | public | function | |||
StreamDecoratorTrait::getSize | public | function | 2 | ||
StreamDecoratorTrait::isReadable | public | function | |||
StreamDecoratorTrait::isWritable | public | function | 1 | ||
StreamDecoratorTrait::read | public | function | 2 | ||
StreamDecoratorTrait::rewind | public | function | 1 | ||
StreamDecoratorTrait::tell | public | function | 1 | ||
StreamDecoratorTrait::write | public | function | 2 | ||
StreamDecoratorTrait::__call | public | function | Allow decorators to implement custom methods | ||
StreamDecoratorTrait::__construct | public | function | 6 | ||
StreamDecoratorTrait::__get | public | function | Magic method used to create a new stream if streams are not added in the constructor of a decorator (e.g., LazyOpenStream). |
||
StreamDecoratorTrait::__toString | public | function |