Files
masimmo.pl/vendor/guzzlehttp/streams/src/NoSeekStream.php
2024-11-20 09:09:44 +01:00

26 lines
431 B
PHP

<?php
namespace GuzzleHttp\Stream;
/**
* Stream decorator that prevents a stream from being seeked
*/
class NoSeekStream implements StreamInterface
{
use StreamDecoratorTrait;
public function seek($offset, $whence = SEEK_SET)
{
return false;
}
public function isSeekable()
{
return false;
}
public function attach($stream)
{
$this->stream->attach($stream);
}
}