Open Journal Systems  3.3.0
NoSeekStream.php
1 <?php
2 namespace GuzzleHttp\Psr7;
3 
5 
9 class NoSeekStream implements StreamInterface
10 {
11  use StreamDecoratorTrait;
12 
13  public function seek($offset, $whence = SEEK_SET)
14  {
15  throw new \RuntimeException('Cannot seek a NoSeekStream');
16  }
17 
18  public function isSeekable()
19  {
20  return false;
21  }
22 }
Psr\Http\Message\StreamInterface
Definition: vendor/psr/http-message/src/StreamInterface.php:12
GuzzleHttp\Psr7\NoSeekStream\isSeekable
isSeekable()
Definition: NoSeekStream.php:18
GuzzleHttp\Psr7
Definition: AppendStream.php:2
GuzzleHttp\Psr7\NoSeekStream
Definition: NoSeekStream.php:9
GuzzleHttp\Psr7\NoSeekStream\seek
seek($offset, $whence=SEEK_SET)
Definition: NoSeekStream.php:13