Interface CategoryRepositoryReaderInterface

Interface CategoryRepositoryReaderInterface

This interface defines methods for fetching category records from the database and is used in the category repository among the classes for writing and deleting category records.

Direct known implementers

CategoryRepositoryReader

Methods summary

public getById( IdType $categoryId ) : StoredCategoryInterface

Returns a category by the given ID.

public getByParentId( IdType $parentId ) : IdCollection

Returns all Categories with the provided parent ID.

public getCategoryIdsTree( IdType $parentCategoryId ) : IdCollection

Returns an id collection with the ids of subcategories.