/** * */ protected function initialize() { if ($this->initialized) { return; } // mark initialized first, to prevent recursive calls $this->initialized = true; $this->resources->rewind(); $this->createNextReader(); }