doc: Remove class DocToc as it's superseded by Data/Tree/Node

refs #4820
This commit is contained in:
Eric Lippmann 2014-06-06 13:59:11 +02:00
parent 6c8d35c667
commit cf987544c5
1 changed files with 0 additions and 48 deletions

View File

@ -1,48 +0,0 @@
<?php
// {{{ICINGA_LICENSE_HEADER}}}
// {{{ICINGA_LICENSE_HEADER}}}
namespace Icinga\Module\Doc;
use IteratorAggregate;
use Icinga\Data\Tree\NodeInterface;
use Icinga\Data\Tree\TreeIterator;
class DocToc implements NodeInterface, IteratorAggregate
{
protected $children = array();
protected $value;
public function __construct($value = null)
{
$this->value = $value;
}
public function getValue()
{
return $this->value;
}
public function appendChild($value)
{
$child = new self($value);
$this->children[] = $child;
return $child;
}
public function hasChildren()
{
return ! empty($this->children);
}
public function getChildren()
{
return $this->children;
}
public function getIterator()
{
return new TreeIterator($this);
}
}