mirror of
https://github.com/TheAlgorithms/PHP.git
synced 2025-07-09 19:16:19 +02:00
18 lines
369 B
PHP
18 lines
369 B
PHP
<?php
|
|
|
|
namespace DataStructures\CompareBinaryTree;
|
|
|
|
class BinaryTreeNode
|
|
{
|
|
public function __construct($value, ?BinaryTreeNode $left = null, BinaryTreeNode $right = null)
|
|
{
|
|
$this->value = $value;
|
|
$this->left = $left;
|
|
$this->right = $right;
|
|
}
|
|
|
|
public $value;
|
|
public ?BinaryTreeNode $left;
|
|
public ?BinaryTreeNode $right;
|
|
}
|