CategoryFactory

Implements \CategoryFactoryInterface

Class CategoryFactory

This class creates Category and StoredCategory objects with its CategorySettings dependency.

category

System

package

Category

subpackage

Factories

Methods

Creates and returns a new instance of a category object.

createCategory() : \Category

Response

\Category

Creates and returns a new instance of a category settings object.

createCategorySettings() : \CategorySettings

Creates and returns a new instance of a stored category object.

createStoredCategory(\IdType $categoryId) : \StoredCategory

Arguments

$categoryId

\IdType

CategoryID.

Response

\StoredCategory