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