# depicter/1.3.2/modules/GuzzleHttp/Psr7/NoSeekStream.php

Depicter — Popup &amp; Slider Builder, version 1.3.2. 26 lines.

- Page: https://pluginprobe.com/plugins/depicter/1.3.2/code/modules/GuzzleHttp/Psr7/NoSeekStream.php
- Raw: https://pluginprobe.com/plugins/depicter/1.3.2/raw/modules/GuzzleHttp/Psr7/NoSeekStream.php
- Modified: 2022-06-01T06:26:20+00:00

Line numbers below start at 1. Link to a line or a range by appending a fragment to the
page URL, for example `https://pluginprobe.com/plugins/depicter/1.3.2/code/modules/GuzzleHttp/Psr7/NoSeekStream.php#L10-L20`.

```php
<?php

namespace Depicter\GuzzleHttp\Psr7;

use Depicter\Psr\Http\Message\StreamInterface;

/**
 * Stream decorator that prevents a stream from being seeked.
 *
 * @final
 */
class NoSeekStream implements StreamInterface
{
    use StreamDecoratorTrait;

    public function seek($offset, $whence = SEEK_SET)
    {
        throw new \RuntimeException('Cannot seek a NoSeekStream');
    }

    public function isSeekable()
    {
        return false;
    }
}

```
