public function getProperty($name) { if ($this->isLink) { return static::$links[count(static::$links) - 1][$name]; } else { return $this->node[$name]; } }