src/Leevel/Tree/Tree.php
public function setData($id, $value): void
    {
        if (isset($this->data[$id])) {
            $this->data[$id] = $value;
        }
    }
public function setData($id, $value): void
    {
        if (isset($this->data[$id])) {
            $this->data[$id] = $value;
        }
    }
设置节点的值

@param int|string $id
@param mixed      $value