lib: Add NodeInterface

This commit is contained in:
Eric Lippmann 2014-05-28 17:13:42 +02:00
parent b11c0c36f9
commit 040473f986
1 changed files with 38 additions and 0 deletions

View 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();
}