酒店预订平台
您最多选择25个主题 主题必须以字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符
 
 
 
 
 
 

26 行
439 B

  1. <?php
  2. namespace GuzzleHttp\Psr7;
  3. use Psr\Http\Message\StreamInterface;
  4. /**
  5. * Stream decorator that prevents a stream from being seeked.
  6. *
  7. * @final
  8. */
  9. class NoSeekStream implements StreamInterface
  10. {
  11. use StreamDecoratorTrait;
  12. public function seek($offset, $whence = SEEK_SET)
  13. {
  14. throw new \RuntimeException('Cannot seek a NoSeekStream');
  15. }
  16. public function isSeekable()
  17. {
  18. return false;
  19. }
  20. }