酒店预订平台
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

пре 3 година
12345678910111213141516171819202122232425
  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. }