mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/Echo
synced 2024-12-01 02:46:46 +00:00
ef3d2b886d
Change-Id: I03333636654eff80d4fe7fa543ac9e6c321af891
20 lines
468 B
PHP
20 lines
468 B
PHP
<?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() {
|
|
// @phan-suppress-next-line PhanTypeMismatchReturn Never called
|
|
return null;
|
|
}
|
|
}
|