src/Support/Services/ServiceObjectCollection.php
/**
	 * Retrieves the next object in the collection, or null if none remain.
	 *
	 * @return object|null
	 */
Retrieves the next object in the collection, or null if none remain.
@return object|null
Retrieves the next object in the collection or null if none remain . @return object|null
public function next() {
		if (array_key_exists($this->index, $this->items)) {
			return $this->items[$this->index++];
		}
		return null;
	}
public function next ( ) { if ( array_key_exists ( $ this -> index , $ this -> items ) ) { return $ this -> items [ $ this -> index ++ ] ; } return null ; }
Retrieves the next object in the collection, or null if none remain.
Retrieves the next object in the collection or null if none remain .