for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
/*
* This file is part of the slince/tree-samples package.
*
* (c) Slince <[email protected]>
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
namespace Slince\Tree;
class Node
{
/**
* @var int
protected $value;
* @var Node
protected $left;
protected $right;
public function __construct($value, $left = null, $right = null)
$this->value = $value;
$this->left = $left;
$this->right = $right;
}
* @return int
public function getValue()
return $this->value;
* @return Node
public function getLeft()
return $this->left;
public function getRight()
return $this->right;