getIterator(); } $this->_iterator = $iterator; return; } /** * Return the current element. * * @return mixed */ public function current() { return $this->_iterator->current(); } /** * Return the key of the current element. * * @return mixed */ public function key() { return $this->_iterator->key(); } /** * Move forward to next element. * * @return void */ public function next() { return $this->_iterator->next(); } /** * Rewind the iterator to the first element. * * @return void */ public function rewind() { return $this->_iterator->rewind(); } /** * Check if current position is valid. * * @return bool */ public function valid() { return $this->_iterator->valid(); } /** * Return an iterator for the current entry. * It's a fake, we return null. * * @return void */ public function getChildren() { return null; } /** * Return if an iterator can be created for the current entry. * It's a fake, we return false. * * @return bool */ public function hasChildren() { return false; } }