for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace Thruster\Component\HttpMessage;
use Psr\Http\Message\StreamInterface;
/**
* Class NoSeekStream
*
* @package Thruster\Component\HttpMessage
* @author Aurimas Niekis <[email protected]>
*/
class NoSeekStream implements StreamInterface
{
use StreamDecoratorTrait;
public function seek($offset, $whence = SEEK_SET)
throw new \RuntimeException('Cannot seek a NoSeekStream');
}
public function isSeekable() : bool
return false;