<?php
namespace Symfony\Component\Process;
use Symfony\Component\Process\Exception\RuntimeException;
class InputStream implements \IteratorAggregate
{
private $onEmpty = null;
private $input = [];
private $open = true;
public function onEmpty(callable $onEmpty = null)
{
$this->onEmpty = $onEmpty;
}
public function write($input)
{