Skip to content

Instantly share code, notes, and snippets.

@code-poel
Created August 1, 2013 12:08
Show Gist options
  • Save code-poel/6130764 to your computer and use it in GitHub Desktop.
Save code-poel/6130764 to your computer and use it in GitHub Desktop.
Reusable block for Spl work.
<?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