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