<?php
//interface Iterator extends \Traversable {}
class Loopy implements \Iterator {
public function key() { } public function next() { } public function valid() { }
}
Reflection::export(new ReflectionClass('Loopy'));
PD9waHAKCi8vaW50ZXJmYWNlIEl0ZXJhdG9yIGV4dGVuZHMgXFRyYXZlcnNhYmxlIHt9CgpjbGFzcyBMb29weSBpbXBsZW1lbnRzIFxJdGVyYXRvciB7CiAgICBwdWJsaWMgZnVuY3Rpb24gY3VycmVudCgpIHsgfQogICAgcHVibGljIGZ1bmN0aW9uIGtleSgpIHsgfQogICAgcHVibGljIGZ1bmN0aW9uIG5leHQoKSB7IH0KICAgIHB1YmxpYyBmdW5jdGlvbiByZXdpbmQoKSB7IH0KICAgIHB1YmxpYyBmdW5jdGlvbiB2YWxpZCgpIHsgfQp9CgoKUmVmbGVjdGlvbjo6ZXhwb3J0KG5ldyBSZWZsZWN0aW9uQ2xhc3MoJ0xvb3B5JykpOw==
Class [ <user> <iterateable> class Loopy implements Iterator, Traversable ] {
@@ /home/gPU5xt/prog.php 5-11
- Constants [0] {
}
- Static properties [0] {
}
- Static methods [0] {
}
- Properties [0] {
}
- Methods [5] {
Method [ <user, prototype Iterator> public method current ] {
@@ /home/gPU5xt/prog.php 6 - 6
}
Method [ <user, prototype Iterator> public method key ] {
@@ /home/gPU5xt/prog.php 7 - 7
}
Method [ <user, prototype Iterator> public method next ] {
@@ /home/gPU5xt/prog.php 8 - 8
}
Method [ <user, prototype Iterator> public method rewind ] {
@@ /home/gPU5xt/prog.php 9 - 9
}
Method [ <user, prototype Iterator> public method valid ] {
@@ /home/gPU5xt/prog.php 10 - 10
}
}
}