object = $object; } protected function didRewind() { $this->cursor = 0; } #[\ReturnTypeWillChange] public function key() { return $this->current()->getID(); } protected function loadPage() { $results = $this->object->loadAllWhere( 'id > %d ORDER BY id ASC LIMIT %d', $this->cursor, $this->getPageSize()); if ($results) { $this->cursor = last($results)->getID(); } return $results; } }