Files
core/vendor/guzzlehttp/psr7/src/NoSeekStream.php
T
Hide_D b306601c72 Dep: update
주로 PHAN
2021-08-06 22:39:09 +09:00

26 lines
439 B
PHP

<?php
namespace GuzzleHttp\Psr7;
use Psr\Http\Message\StreamInterface;
/**
* Stream decorator that prevents a stream from being seeked.
*
* @final
*/
class NoSeekStream implements StreamInterface
{
use StreamDecoratorTrait;
public function seek($offset, $whence = SEEK_SET)
{
throw new \RuntimeException('Cannot seek a NoSeekStream');
}
public function isSeekable()
{
return false;
}
}