diff --git a/library/Icinga/Data/Tree/NodeInterface.php b/library/Icinga/Data/Tree/NodeInterface.php index 8ecca86c6..1d96973e0 100644 --- a/library/Icinga/Data/Tree/NodeInterface.php +++ b/library/Icinga/Data/Tree/NodeInterface.php @@ -4,7 +4,9 @@ namespace Icinga\Data\Tree; -interface NodeInterface +use RecursiveIterator; + +interface NodeInterface extends RecursiveIterator { /** * Append a child to the node @@ -21,18 +23,4 @@ interface NodeInterface * @return mixed */ public function getValue(); - - /** - * Whether the node has children - * - * @return bool - */ - public function hasChildren(); - - /** - * Get the node's children - * - * @return array - */ - public function getChildren(); }