ModifierDTOBuilder
in package
implements
ModifierDTOBuilderInterface
Class ModifierDTOBuilder
Interfaces, Classes and Traits
- ModifierDTOBuilderInterface
- Interface ModifierDTOBuilderInterface
Table of Contents
- $groupId : GroupIdentifierInterface
- $id : ModifierIdentifierInterface
- $image : string
- $name : string
- $price : float
- $pricePrefix : string
- $selectable : bool
- $selected : bool
- $showStock : bool
- $source : string
- $type : string
- build() : ModifierDTO
- withGroupId() : $this
- withId() : ModifierDTOBuilderInterface
- withImage() : ModifierDTOBuilderInterface
- withName() : ModifierDTOBuilderInterface
- withPrice() : ModifierDTOBuilderInterface
- withPricePrefix() : ModifierDTOBuilderInterface
- withSelectable() : $this|ModifierDTOBuilderInterface
- withSelected() : $this|ModifierDTOBuilderInterface
- withShowStock() : ModifierDTOBuilderInterface
- withSource() : ModifierDTOBuilderInterface
- withType() : ModifierDTOBuilderInterface
Properties
$groupId
protected
GroupIdentifierInterface
$groupId
$id
protected
ModifierIdentifierInterface
$id
$image
protected
string
$image
$name
protected
string
$name
$price
protected
float
$price
= 0
$pricePrefix
protected
string
$pricePrefix
= ''
$selectable
protected
bool
$selectable
= true
$selected
protected
bool
$selected
= false
$showStock
protected
bool
$showStock
= false
$source
protected
string
$source
$type
protected
string
$type
Methods
build()
public
build() : ModifierDTO
Tags
Return values
ModifierDTO —withGroupId()
public
withGroupId(GroupIdentifierInterface $groupId) : $this
Parameters
- $groupId : GroupIdentifierInterface
Return values
$this —withId()
public
withId(ModifierIdentifierInterface $id) : ModifierDTOBuilderInterface
Parameters
Tags
Return values
ModifierDTOBuilderInterface —withImage()
public
withImage(string $image) : ModifierDTOBuilderInterface
Parameters
- $image : string
Tags
Return values
ModifierDTOBuilderInterface —withName()
public
withName(string $name) : ModifierDTOBuilderInterface
Parameters
- $name : string
Tags
Return values
ModifierDTOBuilderInterface —withPrice()
public
withPrice(float $price) : ModifierDTOBuilderInterface
Parameters
- $price : float
Tags
Return values
ModifierDTOBuilderInterface —withPricePrefix()
public
withPricePrefix(string $pricePrefix) : ModifierDTOBuilderInterface
Parameters
- $pricePrefix : string
Tags
Return values
ModifierDTOBuilderInterface —withSelectable()
public
withSelectable(bool $selectable) : $this|ModifierDTOBuilderInterface
Parameters
- $selectable : bool
Return values
$this|ModifierDTOBuilderInterface —withSelected()
public
withSelected(bool $selected) : $this|ModifierDTOBuilderInterface
Parameters
- $selected : bool
Return values
$this|ModifierDTOBuilderInterface —withShowStock()
public
withShowStock(bool $showStock) : ModifierDTOBuilderInterface
Parameters
- $showStock : bool
Return values
ModifierDTOBuilderInterface —withSource()
public
withSource(string $source) : ModifierDTOBuilderInterface
Parameters
- $source : string
Tags
Return values
ModifierDTOBuilderInterface —withType()
public
withType(string $type) : ModifierDTOBuilderInterface
Parameters
- $type : string