PurposeBuilder
in package
implements
PurposeBuilderInterface
Class PurposeBuilder
Interfaces, Classes and Traits
- PurposeBuilderInterface
- Interface PurposeBuilderInterface
Table of Contents
- $alias : string
- $category : CategoryInterface
- $deletable : bool
- $description : string
- $id : int
- $name : string
- $status : bool
- $mapper : CategoryCategoryIdMapperInterface
- __construct() : mixed
- PurposeBuilder constructor.
- build() : PurposeInterface
- create() : PurposeBuilderInterface
- withAlias() : PurposeBuilderInterface
- withCategory() : PurposeBuilderInterface
- withCategoryId() : PurposeBuilderInterface
- withDeletable() : PurposeBuilderInterface
- withDescriptions() : PurposeBuilderInterface
- withId() : PurposeBuilderInterface
- withNames() : PurposeBuilderInterface
- withStatus() : PurposeBuilderInterface
Properties
$alias
protected
string
$alias
$category
protected
CategoryInterface
$category
$deletable
protected
bool
$deletable
$description
protected
string
$description
$id
protected
int
$id
$name
protected
string
$name
$status
protected
bool
$status
$mapper
private
CategoryCategoryIdMapperInterface
$mapper
Methods
__construct()
PurposeBuilder constructor.
public
__construct(CategoryCategoryIdMapperInterface $mapper) : mixed
Parameters
- $mapper : CategoryCategoryIdMapperInterface
Return values
mixed —build()
public
build() : PurposeInterface
Tags
Return values
PurposeInterface —create()
public
static create(CategoryCategoryIdMapperInterface $mapper) : PurposeBuilderInterface
Parameters
- $mapper : CategoryCategoryIdMapperInterface
Tags
Return values
PurposeBuilderInterface —withAlias()
public
withAlias([string $alias = null ]) : PurposeBuilderInterface
Parameters
- $alias : string = null
Tags
Return values
PurposeBuilderInterface —withCategory()
public
withCategory(CategoryInterface $category) : PurposeBuilderInterface
Parameters
- $category : CategoryInterface
Tags
Return values
PurposeBuilderInterface —withCategoryId()
public
withCategoryId(int $categoryId, LanguageCode $languageCode) : PurposeBuilderInterface
Parameters
- $categoryId : int
- $languageCode : LanguageCode
Return values
PurposeBuilderInterface —withDeletable()
public
withDeletable(bool $deletable) : PurposeBuilderInterface
Parameters
- $deletable : bool
Tags
Return values
PurposeBuilderInterface —withDescriptions()
public
withDescriptions(array<string|int, mixed> $description) : PurposeBuilderInterface
Parameters
- $description : array<string|int, mixed>
Tags
Return values
PurposeBuilderInterface —withId()
public
withId(int $id) : PurposeBuilderInterface
Parameters
- $id : int
Tags
Return values
PurposeBuilderInterface —withNames()
public
withNames(array<string|int, mixed> $names) : PurposeBuilderInterface
Parameters
- $names : array<string|int, mixed>
Tags
Return values
PurposeBuilderInterface —withStatus()
public
withStatus(bool $status) : PurposeBuilderInterface
Parameters
- $status : bool