Browse files

Allow accessing the internal object.

  • Loading branch information...
1 parent 79713c2 commit c2a0463c0717bc70ef441d69e3d31becca10b692 @saltybeagle saltybeagle committed Apr 9, 2010
Showing with 5 additions and 0 deletions.
  1. +5 −0 src/Templates/Savant/ObjectProxy/Traversable.php
View
5 src/Templates/Savant/ObjectProxy/Traversable.php
@@ -4,6 +4,11 @@
class Traversable extends ObjectProxy implements \Iterator
{
+ function getIterator()
+ {
+ return $this->object;
+ }
+
function next()
{
$this->object->next();

0 comments on commit c2a0463

Please sign in to comment.