$maxLength
$maxLength :
Stream decorator that begins dropping data once the size of the underlying stream becomes too full.
__construct(\Psr\Http\Message\StreamInterface $stream, integer $maxLength)
\Psr\Http\Message\StreamInterface | $stream | Underlying stream to decorate. |
integer | $maxLength | Maximum size before dropping data. |
__get(string $name) : \Psr\Http\Message\StreamInterface
Magic method used to create a new stream if streams are not added in the constructor of a decorator (e.g., LazyOpenStream).
string | $name | Name of the property (allows "stream" only). |
createStream() : \Psr\Http\Message\StreamInterface
Implement in subclasses to dynamically create streams when requested.