1<?php
2namespace GuzzleHttp\Stream;
3
4/**
5 * Stream decorator that prevents a stream from being seeked
6 */
7class NoSeekStream implements StreamInterface
8{
9    use StreamDecoratorTrait;
10
11    public function seek($offset, $whence = SEEK_SET)
12    {
13        return false;
14    }
15
16    public function isSeekable()
17    {
18        return false;
19    }
20
21    public function attach($stream)
22    {
23        $this->stream->attach($stream);
24    }
25}
26