酒店预订平台
Vous ne pouvez pas sélectionner plus de 25 sujets Les noms de sujets doivent commencer par une lettre ou un nombre, peuvent contenir des tirets ('-') et peuvent comporter jusqu'à 35 caractères.

NoSeekStream.php 439 B

il y a 3 ans
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. }