parentComponent = $component; return $this; } public function getParentComponent(): ?Component { return $this->parentComponent; } }