CategoryObjectService
in package
implements
CategoryObjectServiceInterface
Class CategoryObjectService
Use this class for creating new categories objects with its default values.
Tags
Interfaces, Classes and Traits
- CategoryObjectServiceInterface
- Interface CategoryObjectServiceInterface
Table of Contents
- $categoryFactory : CategoryFactoryInterface
- CategoryFactory interface.
- __construct() : mixed
- CategoryObjectService constructor.
- createCategoryObject() : CategoryInterface
- Creates a new category object with its default values.
Properties
$categoryFactory
CategoryFactory interface.
protected
CategoryFactoryInterface
$categoryFactory
Methods
__construct()
CategoryObjectService constructor.
public
__construct(CategoryFactoryInterface $categoryFactory) : mixed
Parameters
- $categoryFactory : CategoryFactoryInterface
-
The category factory.
Return values
mixed —createCategoryObject()
Creates a new category object with its default values.
public
createCategoryObject() : CategoryInterface