mirror of
https://github.com/TheAlgorithms/PHP.git
synced 2025-07-09 11:13:50 +02:00
17 lines
350 B
PHP
17 lines
350 B
PHP
<?php
|
|
namespace DataStructures;
|
|
|
|
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;
|
|
}
|