From 0d63e14baf8184088713c3ce819741d022b45e5b Mon Sep 17 00:00:00 2001 From: Eric Lippmann Date: Fri, 6 Feb 2015 17:27:14 +0100 Subject: [PATCH] lib: Rename Node to TreeNode refs #6630 --- library/Icinga/Data/Tree/{Node.php => TreeNode.php} | 6 +++--- library/Icinga/Data/Tree/TreeNodeIterator.php | 4 ++-- 2 files changed, 5 insertions(+), 5 deletions(-) rename library/Icinga/Data/Tree/{Node.php => TreeNode.php} (91%) diff --git a/library/Icinga/Data/Tree/Node.php b/library/Icinga/Data/Tree/TreeNode.php similarity index 91% rename from library/Icinga/Data/Tree/Node.php rename to library/Icinga/Data/Tree/TreeNode.php index ad1db9c36..fcf257e55 100644 --- a/library/Icinga/Data/Tree/Node.php +++ b/library/Icinga/Data/Tree/TreeNode.php @@ -6,7 +6,7 @@ namespace Icinga\Data\Tree; use Identifiable; use IteratorAggregate; -class Node implements Identifiable, IteratorAggregate +class TreeNode implements Identifiable, IteratorAggregate { /** * The node's ID @@ -77,11 +77,11 @@ class Node implements Identifiable, IteratorAggregate /** * Append a child node as the last child of this node * - * @param Node $child The child to append + * @param TreeNode $child The child to append * * @return $this */ - public function appendChild(Node $child) + public function appendChild(TreeNode $child) { $this->children[] = $child; return $this; diff --git a/library/Icinga/Data/Tree/TreeNodeIterator.php b/library/Icinga/Data/Tree/TreeNodeIterator.php index cdcefe8ea..b0b0b0f83 100644 --- a/library/Icinga/Data/Tree/TreeNodeIterator.php +++ b/library/Icinga/Data/Tree/TreeNodeIterator.php @@ -21,9 +21,9 @@ class TreeNodeIterator implements RecursiveIterator /** * Create a new iterator over a tree node's children * - * @param Node $node + * @param TreeNode $node */ - public function __construct(Node $node) + public function __construct(TreeNode $node) { $this->children = new ArrayIterator($node->getChildren()); }