public function getPath() { $path = $this->getParent() ? $this->getParent()->getPath() . '->' : ($this->host ? $this->host->getPath() . '|' : '||'); return $path . ($this->name ?: ($this->getParent() ? $this->getParent()->getChildIndex($this) : '0')); }