mirror of
https://github.com/Icinga/icingaweb2.git
synced 2026-04-26 16:47:03 -04:00
Since a node may have children and they should be iterable, the Nodefinterface now extends RecursiveIterator.
26 lines
436 B
PHP
26 lines
436 B
PHP
<?php
|
|
// {{{ICINGA_LICENSE_HEADER}}}
|
|
// {{{ICINGA_LICENSE_HEADER}}}
|
|
|
|
namespace Icinga\Data\Tree;
|
|
|
|
use RecursiveIterator;
|
|
|
|
interface NodeInterface extends RecursiveIterator
|
|
{
|
|
/**
|
|
* Append a child to the node
|
|
*
|
|
* @param mixed $value
|
|
*
|
|
* @return self
|
|
*/
|
|
public function appendChild($value);
|
|
|
|
/**
|
|
* Get the node's value
|
|
*
|
|
* @return mixed
|
|
*/
|
|
public function getValue();
|
|
}
|