Copied!

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

CloneableInstantiableIterable
Methods
public close()
 

Closes the write buffer.

  • return void
public getIterator() : Traversable
public isClosed()
 

Tells whether the write buffer is closed or not.

  • return bool
public onEmpty(?callable $onEmpty = NULL)
 

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

  • return void
public write(?mixed $input)
 

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
  • return void
Properties
private $input = []
private $onEmpty = NULL
 
  • var callable|null
private $open = true
© 2023 Bruce Wells
Search Namespaces \ Classes
Configuration