PHP Class TreemapNode, simpletest

Show file Open project: simpletest/simpletest Class Usage Examples

Public Properties

Property Type Description
$_description
$_name
$_parent
$_size
$_status

Public Methods

Method Description
__construct ( $name, $description, $status = true )
compareChildren ( $a, $b ) Comparator method to rank child nodes by total weight.
fail ( ) Fail this node.
getChildren ( ) Return list of child nodes from direct edges.
getDescription ( ) : string
getName ( ) : string
getSize ( ) Gets the number of immediate child edges from this node.
getStatus ( ) : string
getTotalSize ( ) depth first search to get the total number of nodes that are descendants of this node.
isFailed ( ) Is this node failed?
isLeaf ( ) Is this node a leaf node?
putChild ( $node ) Add an edge to a child node

Method Details

__construct() public method

public __construct ( $name, $description, $status = true )

compareChildren() public method

Comparator method to rank child nodes by total weight.
public compareChildren ( $a, $b )

fail() public method

Fail this node.
public fail ( )

getChildren() public method

Return list of child nodes from direct edges.
public getChildren ( )

getDescription() public method

public getDescription ( ) : string
return string description of this node

getName() public method

public getName ( ) : string
return string label of this node

getSize() public method

Gets the number of immediate child edges from this node.
public getSize ( )

getStatus() public method

public getStatus ( ) : string
return string status class string

getTotalSize() public method

depth first search to get the total number of nodes that are descendants of this node.
public getTotalSize ( )

isFailed() public method

Is this node failed?
public isFailed ( )

isLeaf() public method

Is this node a leaf node?
public isLeaf ( )

putChild() public method

Add an edge to a child node
public putChild ( $node )

Property Details

$_description public property

public $_description

$_name public property

public $_name

$_parent public property

public $_parent

$_size public property

public $_size

$_status public property

public $_status