bookList = $bookList; $this->currentBook = $this->bookList->count() - 1; } /** * (PHP 5 >= 5.0.0)
* Move forward to next element * @link http://php.net/manual/en/iterator.next.php * @return void Any returned value is ignored. */ public function next() { $this->currentBook--; } }