PHP Класс Learner\Services\Layouts\Category

Показать файл Открыть проект

Защищенные свойства (Protected)

Свойство Тип Описание
$cateRepository Learner\Repositories\CategoryRepositoryInterface Category Reposotiry.
$categories array All categories.

Открытые методы

Метод Описание
__construct ( Learner\Repositories\CategoryRepositoryInterface $cateRepository ) Cache the category.
getCategories ( ) : array Get the category in cache.

Описание методов

__construct() публичный Метод

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

getCategories() публичный Метод

Get the category in cache.
public getCategories ( ) : array
Результат array

Описание свойств

$cateRepository защищенное свойство

Category Reposotiry.
protected CategoryRepositoryInterface,Learner\Repositories $cateRepository
Результат Learner\Repositories\CategoryRepositoryInterface

$categories защищенное свойство

All categories.
protected array $categories
Результат array