PHP Class Learner\Services\Layouts\Category

Show file Open project: RryLee/learner.video

Protected Properties

Property Type Description
$cateRepository Learner\Repositories\CategoryRepositoryInterface Category Reposotiry.
$categories array All categories.

Public Methods

Method Description
__construct ( Learner\Repositories\CategoryRepositoryInterface $cateRepository ) Cache the category.
getCategories ( ) : array Get the category in cache.

Method Details

__construct() public method

Cache the category.
public __construct ( Learner\Repositories\CategoryRepositoryInterface $cateRepository )
$cateRepository Learner\Repositories\CategoryRepositoryInterface

getCategories() public method

Get the category in cache.
public getCategories ( ) : array
return array

Property Details

$cateRepository protected property

Category Reposotiry.
protected CategoryRepositoryInterface,Learner\Repositories $cateRepository
return Learner\Repositories\CategoryRepositoryInterface

$categories protected property

All categories.
protected array $categories
return array