mirror of
https://github.com/openclassify/openclassify.git
synced 2026-02-08 14:26:05 -06:00
commit
8acd2289e4
@ -188,4 +188,9 @@ class CategoryModel extends CatsCategoryEntryModel implements CategoryInterface
|
|||||||
unset($categories[count($categories) - 1]);
|
unset($categories[count($categories) - 1]);
|
||||||
return $categories;
|
return $categories;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public function getParent()
|
||||||
|
{
|
||||||
|
return $this->parent_category;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@ -4,4 +4,5 @@ use Anomaly\Streams\Platform\Entry\Contract\EntryInterface;
|
|||||||
|
|
||||||
interface CategoryInterface extends EntryInterface
|
interface CategoryInterface extends EntryInterface
|
||||||
{
|
{
|
||||||
|
public function getParent();
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user