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