pub rstoetter cbalancedbinarytree cBalancedBinaryTreeNode::__construct() - rstoetter/cbalancedbinarytree-php GitHub Wiki
Method __construct( ) - of API Reference pub
public \rstoetter\cbalancedbinarytree\cBalancedBinaryTreeNode rstoetter\cbalancedbinarytree\cBalancedBinaryTreeNode::__construct($key, $data)
- Namespace : rstoetter\cbalancedbinarytree
- Class name: cBalancedBinaryTreeNode
- This method is defined by the class rstoetter\cbalancedbinarytree\cBalancedBinaryTreeNode
The constructor of the class cBalancedBinaryTreeNode
see the description of class cBinaryTreeNode for an example
Arguments
- $key mixed - <p>the key we are sorting the tree on</p>
- $data mixed - <p>the data part of the node - often an object of a specialized data class</p>
Returns
\rstoetter\cbalancedbinarytree\cBalancedBinaryTreeNode a new instance of cBalancedBinaryTreeNode