Created
August 1, 2013 12:08
-
-
Save code-poel/6130762 to your computer and use it in GitHub Desktop.
Reusable block for Spl work.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
public function getInnerIterator() | |
{ | |
return $this->_children; | |
} | |
public function current() | |
{ | |
return $this->getInnerIterator()->current(); | |
} | |
public function key() | |
{ | |
return $this->getInnerIterator()->key(); | |
} | |
public function next() | |
{ | |
$this->getInnerIterator()->next(); | |
} | |
public function valid() | |
{ | |
return $this->getInnerIterator()->valid(); | |
} | |
public function rewind() | |
{ | |
$this->getInnerIterator()->rewind(); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment