代码拉取完成,页面将自动刷新
<?php
/**
* User:@DennisRitche
*/
class Node
{
/**
* @var $value mixed
* **/
private $value = null;
/**
* @var $left_node Node
* **/
private $left_node = null;
/**
* @var $right_node Node
* **/
private $right_node = null;
/**
* @var $parent_node Node
* **/
private $parent_node = null;
/**
* Node constructor.
* @param $value mixed
*/
public function __construct($value)
{
$this->value = $value;
}
/**
* @param $value mixed
* @return self
*/
public static function create($value)
{
return new static($value);
}
/**
* @return Node
*/
public function getLeftNode()
{
return $this->left_node;
}
/**
* @param Node $left_node
*/
public function setLeftNode($left_node)
{
$this->left_node = $left_node;
}
/**
* @return Node
*/
public function getRightNode()
{
return $this->right_node;
}
/**
* @param Node $right_node
*/
public function setRightNode($right_node)
{
$this->right_node = $right_node;
}
/**
* @return mixed
*/
public function getValue()
{
return $this->value;
}
/**
* @param mixed $value
*/
public function setValue($value)
{
$this->value = $value;
}
/**
* @return Node
*/
public function getParentNode()
{
return $this->parent_node;
}
/**
* @param Node $parent_node
*/
public function setParentNode($parent_node)
{
$this->parent_node = $parent_node;
}
}
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。