function getNext() { if (!$this->instances) { $this->getInstances(); } $this->instances->next(); return $this->instances->current(); }