Skip to content
CompositeInterface.php 679 B
Newer Older
<?php
/**
 * Class CompositeInterface
 *
 * Date: 25.03.13
 * Time: 15:36
 * @author Thomas Joußen <tjoussen@databay.de>
 */

Michael Jansen's avatar
Michael Jansen committed
interface CompositeInterface
{
Michael Jansen's avatar
Michael Jansen committed
    /**
     * Adds an CompositeInterface object to the node array which represents the condition tree structure
     *
     * @param CompositeInterface $node
     */
    public function addNode(CompositeInterface $node);
Michael Jansen's avatar
Michael Jansen committed
    /**
     * Describes a Composite tree Structure as human readable string
     *
     * @return string
     */
    public function describe();
Michael Jansen's avatar
Michael Jansen committed
    /**
     * Get a human readable description of the Composite element
     *
     * @return string
     */
    public function getDescription();
}