/** * Get the id of the parent category. * * @return string */ public function getParentId() { return $this->parent ? $this->parent->getId() : null; }
/** * Get the id of the category page. * * @return string */ public function getCategoryId() { return $this->category ? $this->category->getId() : null; }