summaryrefslogtreecommitdiff
blob: 2bc002bffa1661b21c8f7edf347ee0a399c8c312 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
<?php

/**
 * Wraps a non-recursive iterator with methods to be recursive
 * without children.
 *
 * Alternatively wraps a recursive iterator to prevent recursing deeper
 * than the wrapped iterator.
 */
class EchoNotRecursiveIterator extends EchoIteratorDecorator implements RecursiveIterator {
	public function hasChildren() {
		return false;
	}

	public function getChildren() {
		return null;
	}
}