File indexing completed on 2024-12-29 05:27:23
0001 <?php 0002 namespace GuzzleHttp\Psr7; 0003 0004 use Psr\Http\Message\StreamInterface; 0005 0006 /** 0007 * Stream decorator that prevents a stream from being seeked 0008 */ 0009 class NoSeekStream implements StreamInterface 0010 { 0011 use StreamDecoratorTrait; 0012 0013 public function seek($offset, $whence = SEEK_SET) 0014 { 0015 throw new \RuntimeException('Cannot seek a NoSeekStream'); 0016 } 0017 0018 public function isSeekable() 0019 { 0020 return false; 0021 } 0022 }