mirror of
https://github.com/Icinga/icingaweb2.git
synced 2025-07-27 07:44:04 +02:00
lib: Add NodeInterface
This commit is contained in:
parent
b11c0c36f9
commit
040473f986
38
library/Icinga/Data/Tree/NodeInterface.php
Normal file
38
library/Icinga/Data/Tree/NodeInterface.php
Normal file
@ -0,0 +1,38 @@
|
|||||||
|
<?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();
|
||||||
|
}
|
Loading…
x
Reference in New Issue
Block a user