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