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