mirror of
https://github.com/Icinga/icingaweb2.git
synced 2025-11-02 12:14:13 +01:00
39 lines
613 B
PHP
39 lines
613 B
PHP
<?php
|
|
// {{{ICINGA_LICENSE_HEADER}}}
|
|
// {{{ICINGA_LICENSE_HEADER}}}
|
|
|
|
namespace Icinga\Data\Tree;
|
|
|
|
interface NodeInterface
|
|
{
|
|
/**
|
|
* 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();
|
|
|
|
/**
|
|
* Whether the node has children
|
|
*
|
|
* @return bool
|
|
*/
|
|
public function hasChildren();
|
|
|
|
/**
|
|
* Get the node's children
|
|
*
|
|
* @return array
|
|
*/
|
|
public function getChildren();
|
|
}
|