PurposeFactory
in package
implements
PurposeFactoryInterface
Class PurposeFactory
Interfaces, Classes and Traits
- PurposeFactoryInterface
- Interface PurposeFactoryInterface
Table of Contents
- $code : LanguageCode
- $dto : PurposeDtoInterface
- $mapper : CategoryCategoryIdMapperInterface
- __construct() : mixed
- PurposeFactory constructor.
- create() : PurposeInterface
- builder() : PurposeBuilderInterface
Properties
$code
protected
LanguageCode
$code
$dto
protected
PurposeDtoInterface
$dto
$mapper
protected
CategoryCategoryIdMapperInterface
$mapper
Methods
__construct()
PurposeFactory constructor.
public
__construct(CategoryCategoryIdMapperInterface $mapper, LanguageCode $code) : mixed
Parameters
- $mapper : CategoryCategoryIdMapperInterface
- $code : LanguageCode
Return values
mixed —create()
public
create(PurposeDtoInterface $dto) : PurposeInterface
Parameters
- $dto : PurposeDtoInterface
Tags
Return values
PurposeInterface —builder()
protected
builder() : PurposeBuilderInterface