parent = $parent; $this->pid = $pid; } public function getTitle(): string { return $this->title; } public function getSorting(): int { return $this->sorting; } public function getParent(): ?Category { if ($this->parent instanceof LazyLoadingProxy) { $this->parent->_loadRealInstance(); } return $this->parent; } }