You are here

public function DroppingStream::__construct in Lockr 7.3

Parameters

StreamInterface $stream Underlying stream to decorate.:

int $maxLength Maximum size before dropping data.:

Overrides StreamDecoratorTrait::__construct

File

vendor/guzzlehttp/psr7/src/DroppingStream.php, line 20

Class

DroppingStream
Stream decorator that begins dropping data once the size of the underlying stream becomes too full.

Namespace

GuzzleHttp\Psr7

Code

public function __construct(StreamInterface $stream, $maxLength) {
  $this->stream = $stream;
  $this->maxLength = $maxLength;
}