src/ADT/Tree/BalanceBinaryNode.php
public function getBalance()
	{
		$la = $this->left  ? $this->left->getHeight()  : 0;
		$lb = $this->right ? $this->right->getHeight() : 0;
		return ( $la - $lb );
	}
public function getBalance()
	{
		$la = $this->left  ? $this->left->getHeight()  : 0;
		$lb = $this->right ? $this->right->getHeight() : 0;
		return ( $la - $lb );
	}
public function getBalance ( ) { $ la = $ this -> left ? $ this -> left -> getHeight ( ) : 0 ; $ lb = $ this -> right ? $ this -> right -> getHeight ( ) : 0 ; return ( $ la - $ lb ) ; }
Returns  current Balance.
@access		public
@param		mixed		value		Value of new Node
@return		int
Returns current Balance .