Inserts line ending characters after the set number of characters have been
written to the underlying stream.
- author Zaahid Bateson
CloneableInstantiable
- Implements
Psr\Http\Message\StreamInterface Stringable - Traits
Methods |
public __call(string $method, array $args) Allow decorators to implement custom methods
|
public __construct(Psr\Http\Message\StreamInterface $stream, int $lineLength = 76, string $lineEnding = ' ') |
public __get(string $name) Magic method used to create a new stream if streams are not added in
|
public __toString() : string |
public close() : void
|
public detach()
|
public eof() : bool |
public getContents() : string |
public getMetadata( $key = NULL)
|
public getSize() : ?int |
public isReadable() : bool |
public isSeekable() : bool |
public isWritable() : bool |
public read( $length) : string |
public rewind() : void |
public seek( $offset, $whence = 0GuzzleHttp\Psr7\SEEK_SET) : void |
public tell() : int |
public write( $string) : int Writes the passed string to the underlying stream, ensuring line endings
|
Methods |
protected createStream() : Psr\Http\Message\StreamInterface Implement in subclasses to dynamically create streams when requested.
|
Properties |
private $lineEnding = NULL
|
private $lineEndingLength = NULL
|
private $lineLength = NULL
|
private $position = NULL
|
private $stream = NULL
|
Methods |
private beforeClose() : void Inserts a final line ending character. |
private getChunkedString(string $string) : string Inserts the line ending character after each line length characters in |