text = $text; $this->parent = $parent; return $this; } public function __toString(): string { return $this->render(); } public function render(): string { return $this->text; } }