public E next() {
        if (!hasNext()) {
            throw new NoSuchElementException();
        }
        this.lastItemIndex = this.index;
        return this.array[this.index++];
    }
Gets the next element from the array.

@return the next element
@throws java.util.NoSuchElementException if there is no next element
jphp-runtime/src/php/runtime/common/collections/iterators/ObjectArrayListIterator.java