mirror of
https://github.com/openclassify/openclassify.git
synced 2026-01-11 18:01:10 -06:00
create getParent function
This commit is contained in:
parent
5c706c6dc3
commit
a01447637b
@ -188,4 +188,9 @@ class CategoryModel extends CatsCategoryEntryModel implements CategoryInterface
|
||||
unset($categories[count($categories) - 1]);
|
||||
return $categories;
|
||||
}
|
||||
|
||||
public function getParent()
|
||||
{
|
||||
return $this->parent_category;
|
||||
}
|
||||
}
|
||||
|
||||
@ -4,4 +4,5 @@ use Anomaly\Streams\Platform\Entry\Contract\EntryInterface;
|
||||
|
||||
interface CategoryInterface extends EntryInterface
|
||||
{
|
||||
public function getParent();
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user