酒店预订平台
Non puoi selezionare più di 25 argomenti Gli argomenti devono iniziare con una lettera o un numero, possono includere trattini ('-') e possono essere lunghi fino a 35 caratteri.
 
 
 
 
 
 

26 righe
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. }