create getParent function

This commit is contained in:
vedatakd 2020-10-01 19:57:55 +03:00
parent 5c706c6dc3
commit a01447637b
2 changed files with 6 additions and 0 deletions

View File

@ -188,4 +188,9 @@ class CategoryModel extends CatsCategoryEntryModel implements CategoryInterface
unset($categories[count($categories) - 1]);
return $categories;
}
public function getParent()
{
return $this->parent_category;
}
}

View File

@ -4,4 +4,5 @@ use Anomaly\Streams\Platform\Entry\Contract\EntryInterface;
interface CategoryInterface extends EntryInterface
{
public function getParent();
}