Medusa\Tree\PersistentAvlTree::__construct PHP Метод

__construct() публичный Метод

public __construct ( $key, $value, Medusa\Tree\BinaryTree $left, Medusa\Tree\BinaryTree $right )
$left Medusa\Tree\BinaryTree
$right Medusa\Tree\BinaryTree
    public function __construct($key, $value, BinaryTree $left, BinaryTree $right)
    {
        $this->key = $key;
        $this->value = $value;
        $this->left = $left;
        $this->right = $right;
        $this->height = 1 + max($left->height(), $right->height());
    }