You are here

public function Collection::next in Plug 7

Moves the internal iterator position to the next element and returns this element.

Return value

mixed

2 methods override Collection::next()
AbstractLazyCollection::next in lib/doctrine/collections/lib/Doctrine/Common/Collections/AbstractLazyCollection.php
Moves the internal iterator position to the next element and returns this element.
ArrayCollection::next in lib/doctrine/collections/lib/Doctrine/Common/Collections/ArrayCollection.php
Moves the internal iterator position to the next element and returns this element.

File

lib/doctrine/collections/lib/Doctrine/Common/Collections/Collection.php, line 187

Class

Collection
The missing (SPL) Collection/Array/OrderedMap interface.

Namespace

Doctrine\Common\Collections

Code

public function next();