protected function addToData(\ORC\Util\Tree\INode $node, $strict = true) { if (!isset($this->data[$node->getKey()])) { $this->data[$node->getKey()] = $node; unset($this->orphan[$node->getKey()]); } elseif ($strict) { throw new RuntimeException('数据已经存在,不能重复添加'); } }