bookList = $bookList_in; $this->currentBook = $this->bookList->getBookCount() + 1; } public function getNextBook() { if ($this->hasNextBook()) { return $this->bookList->getBook(--$this->currentBook); } else { return NULL; } } public function hasNextBook() { if (1 < $this->currentBook) { return TRUE; } else { return FALSE; } } } ?>