Copied!

Provides a way to continuously write to the input of a Process until the InputStream is closed.

CloneableInstantiableIterable
Methods
public close() : void
 

Closes the write buffer.

public getIterator() : Traversable
public isClosed() : bool
 

Tells whether the write buffer is closed or not.

public onEmpty(?callable $onEmpty = NULL) : void
 

Sets a callback that is called when the write buffer becomes empty.

public write(?mixed $input) : void
 

Appends an input to the write buffer.

  • param resource|string|int|float|bool|\Traversable|null $input The input to append as scalar, stream resource or \Traversable
Properties
private array $input = []
private ?Closure $onEmpty = NULL
private bool $open = true
© 2024 Bruce Wells
Search Namespaces \ Classes
Configuration