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

@return the next element in the array
@throws java.util.NoSuchElementException if all the elements in the array
                               have already been returned
jphp-runtime/src/php/runtime/common/collections/iterators/ObjectArrayIterator.java