public function __construct(\Iterator $iterator, callable $callback) { parent::__construct($iterator); $this->callback = $callback; }