PHP Class Learner\Services\Layouts\Category

ファイルを表示 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_oe property

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

$categories protected_oe property

All categories.
protected array $categories
return array