getIteratorArray()); } /** * Returns the count of the iterator array. * * @return int */ public function count(): int { return count($this->getIteratorArray()); } /** * Returns the array to be used the the iterator. * * @return array */ abstract protected function getIteratorArray(): array; }