_anchorToPrevious = $anchorToPrevious; $this->_parent = \WeakReference::create($parent); } public function add(string ...$atoms): bool { if ($this->frozen) { return false; } $this->atoms = $atoms; $this->frozen = true; return true; } public function __toString(): string { $result = ''; if ($this->_anchorToPrevious) { $result .= '< '; } $result .= implode('.', $this->_atoms); return $result; } }