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