/** * This method will rewind the iterable for possible later reuse * @since 1.2.0.Beta */ function onClose() { if($this->iterable instanceof Iterable) { $this->iterable->reset(); } parent::onClose(); }