Вход Регистрация
Файл: includes/library/aws/GuzzleHttp/Psr7/NoSeekStream.php
Строк: 18
<?php
namespace GuzzleHttpPsr7;

use 
PsrHttpMessageStreamInterface;

/**
 * Stream decorator that prevents a stream from being seeked
 */
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;
    }
}
Онлайн: 0
Реклама