Merge pull request #695 from openclassify/vedatak

added getParents
This commit is contained in:
Fatih Alp 2020-10-02 19:39:49 +03:00 committed by GitHub
commit 8acd2289e4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
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]); unset($categories[count($categories) - 1]);
return $categories; 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 interface CategoryInterface extends EntryInterface
{ {
public function getParent();
} }