2014-05-28 11:13:42 -04:00
|
|
|
<?php
|
|
|
|
|
// {{{ICINGA_LICENSE_HEADER}}}
|
|
|
|
|
// {{{ICINGA_LICENSE_HEADER}}}
|
|
|
|
|
|
|
|
|
|
namespace Icinga\Data\Tree;
|
|
|
|
|
|
2014-06-06 07:55:58 -04:00
|
|
|
use RecursiveIterator;
|
|
|
|
|
|
|
|
|
|
interface NodeInterface extends RecursiveIterator
|
2014-05-28 11:13:42 -04:00
|
|
|
{
|
|
|
|
|
/**
|
2014-06-13 11:22:43 -04:00
|
|
|
* Create a new node from the given value and insert the node as the last child of this node
|
2014-05-28 11:13:42 -04:00
|
|
|
*
|
2014-06-13 11:22:43 -04:00
|
|
|
* @param mixed $value The node's value
|
2014-05-28 11:13:42 -04:00
|
|
|
*
|
2014-06-13 11:22:43 -04:00
|
|
|
* @return NodeInterface The appended node
|
2014-05-28 11:13:42 -04:00
|
|
|
*/
|
|
|
|
|
public function appendChild($value);
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* Get the node's value
|
|
|
|
|
*
|
|
|
|
|
* @return mixed
|
|
|
|
|
*/
|
|
|
|
|
public function getValue();
|
|
|
|
|
}
|