icingaweb2/library/Icinga/Data/Tree/NodeInterface.php

27 lines
564 B
PHP
Raw Normal View History

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