[ Index ]

PHP Cross Reference of phpBB-3.3.3-deutsch

title

Body

[close]

/vendor/guzzlehttp/psr7/src/ -> NoSeekStream.php (source)

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


Generated: Sun Feb 14 20:08:31 2021 Cross-referenced by PHPXref 0.7.1