mirror of
https://github.com/Icinga/icingaweb2.git
synced 2025-07-29 00:34:03 +02:00
lib: Remove TreeNode::getIterator()
Its the tree who has the iterator. refs #6630
This commit is contained in:
parent
b18405e99f
commit
760819f239
@ -3,10 +3,9 @@
|
|||||||
|
|
||||||
namespace Icinga\Data\Tree;
|
namespace Icinga\Data\Tree;
|
||||||
|
|
||||||
use IteratorAggregate;
|
|
||||||
use Icinga\Data\Identifiable;
|
use Icinga\Data\Identifiable;
|
||||||
|
|
||||||
class TreeNode implements Identifiable, IteratorAggregate
|
class TreeNode implements Identifiable
|
||||||
{
|
{
|
||||||
/**
|
/**
|
||||||
* The node's ID
|
* The node's ID
|
||||||
@ -107,13 +106,4 @@ class TreeNode implements Identifiable, IteratorAggregate
|
|||||||
{
|
{
|
||||||
return $this->children;
|
return $this->children;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
|
||||||
* (non-PHPDoc)
|
|
||||||
* @see IteratorAggregate::getIterator() For the method documentation.
|
|
||||||
*/
|
|
||||||
public function getIterator()
|
|
||||||
{
|
|
||||||
return new TreeNodeIterator($this);
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user