Property | Type | Description | |
---|---|---|---|
$cateRepository | Learner\Repositories\CategoryRepositoryInterface | Category Reposotiry. | |
$categories | array | All categories. |
Method | Description | |
---|---|---|
__construct ( Learner\Repositories\CategoryRepositoryInterface $cateRepository ) | Cache the category. | |
getCategories ( ) : array | Get the category in cache. |
public __construct ( Learner\Repositories\CategoryRepositoryInterface $cateRepository ) | ||
$cateRepository | Learner\Repositories\CategoryRepositoryInterface |
public getCategories ( ) : array | ||
return | array |
protected CategoryRepositoryInterface,Learner\Repositories $cateRepository | ||
return | Learner\Repositories\CategoryRepositoryInterface |