public function setProperty($name, $value) { if ($this->isLink) { static::$links[count(static::$links) - 1][$name] = $value; } else { if (!isset(static::$cols[$name])) { static::$cols[$name] = true; } $this->node[$name] = $value; } return $this; }