<?php
namespace ModulesAbstract\PluginReports\Report\Model\Iterator; class ArrayIterator extends \ModulesAbstract\PluginReports\Report\Model\Gatherer\GathererAbstract { protected $source = null; public function getRequiredFilters() { return []; } protected function objectInitialize() { } protected function objectDestroy() { $this->source = null; } public function setSource($source) { $this->source = $source; return $this; } protected function objectNext() { $ret = next($this->source); $key = key($this->source); if ($key!==null) { return null; } return $ret; } } 