1 | <?php |
||
20 | class BSTNode implements BinaryNodeInterface { |
||
21 | public $key; // key used to insert, remove and retrieve |
||
22 | public $data; // associated data |
||
23 | public $parent; // the parent node |
||
24 | public $left; // left subtree |
||
25 | public $right; // right subtree |
||
26 | |||
27 | public function __construct($key, $data, $parent = null, $left = null, $right = null) { |
||
34 | } |