fork download
  1. <?php
  2.  
  3. //interface Iterator extends \Traversable {}
  4.  
  5. class Loopy implements \Iterator {
  6. public function current() { }
  7. public function key() { }
  8. public function next() { }
  9. public function rewind() { }
  10. public function valid() { }
  11. }
  12.  
  13.  
  14. Reflection::export(new ReflectionClass('Loopy'));
Success #stdin #stdout 0.02s 52480KB
stdin
Standard input is empty
stdout
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
    }
  }
}