AbstractGroupBuilder
in package
implements
GroupBuilderInterface
Class AbstractGroupBuilder
Interfaces, Classes and Traits
- GroupBuilderInterface
- Interface GroupBuilderInterface
Table of Contents
- $id : GroupIdentifierInterface
- $modifiers : array<string|int, ModifierInterface>
- $name : GroupName
- $source : string
- $status : GroupStatus
- $type : PresentationTypeInterface
- __construct() : mixed
- build() : GroupInterface
- withId() : AbstractGroupBuilder
- withModifiers() : mixed
- withName() : $this
- withSource() : GroupBuilderInterface
- withStatus() : $this|GroupBuilderInterface
- withType() : GroupBuilderInterface
- createInstance() : GroupInterface
- modifiers() : ModifiersCollectionInterface
- resetFields() : void
- clear all the properties
- validateGroup() : void
Properties
$id
protected
GroupIdentifierInterface
$id
$modifiers
protected
array<string|int, ModifierInterface>
$modifiers
= null
$name
protected
GroupName
$name
$source
protected
string
$source
$status
protected
GroupStatus
$status
$type
protected
PresentationTypeInterface
$type
Methods
__construct()
public
__construct() : mixed
Return values
mixed —build()
public
build() : GroupInterface
Tags
Return values
GroupInterface —withId()
public
withId(GroupIdentifierInterface $id) : AbstractGroupBuilder
Parameters
- $id : GroupIdentifierInterface
Return values
AbstractGroupBuilder —withModifiers()
public
withModifiers(ModifierInterface ...$modifiers) : mixed
Parameters
- $modifiers : ModifierInterface
Tags
Return values
mixed —withName()
public
withName(GroupName $name) : $this
Parameters
- $name : GroupName
Tags
Return values
$this —withSource()
public
withSource(string $source) : GroupBuilderInterface
Parameters
- $source : string
Return values
GroupBuilderInterface —withStatus()
public
withStatus(GroupStatus $status) : $this|GroupBuilderInterface
Parameters
- $status : GroupStatus
Return values
$this|GroupBuilderInterface —withType()
public
withType(PresentationTypeInterface $presentationType) : GroupBuilderInterface
Parameters
- $presentationType : PresentationTypeInterface
Tags
Return values
GroupBuilderInterface —createInstance()
protected
abstract createInstance() : GroupInterface
Tags
Return values
GroupInterface —modifiers()
protected
modifiers() : ModifiersCollectionInterface
Return values
ModifiersCollectionInterface —resetFields()
clear all the properties
protected
resetFields() : void
Return values
void —validateGroup()
protected
validateGroup() : void