public void setIterator(YieldAdapterIterator iterator) {
                this.iterator = iterator;
            }
The method that will generate your results. Call yield() in here.
jphp-runtime/src/php/runtime/util/generator/Generator.java