ModifierDTO
in package
Class ModifierDTO
Table of Contents
- $groupId : GroupIdentifierInterface
- $id : ModifierIdentifierInterface
- $image : string
- $name : string
- $price : float
- $pricePrefix : string
- $selected : bool
- $source : string
- $type : string
- $selectable : bool
- $showStock : bool
- __construct() : mixed
- ModifierDTO constructor.
- groupId() : GroupIdentifierInterface
- id() : ModifierIdentifierInterface
- image() : string
- isSelectable() : bool
- isSelected() : bool
- name() : string
- price() : float
- pricePrefix() : string
- showStock() : bool
- source() : string
- type() : string
Properties
$groupId
protected
GroupIdentifierInterface
$groupId
$id
protected
ModifierIdentifierInterface
$id
$image
protected
string
$image
$name
protected
string
$name
$price
protected
float
$price
$pricePrefix
protected
string
$pricePrefix
$selected
protected
bool
$selected
$source
protected
string
$source
$type
protected
string
$type
$selectable
private
bool
$selectable
$showStock
private
bool
$showStock
Methods
__construct()
ModifierDTO constructor.
public
__construct(ModifierIdentifierInterface $id, GroupIdentifierInterface $groupId, string $name, string $source, string $type, string $image[, string $pricePrefix = '' ], float $price[, bool $selected = false ][, bool $selectable = true ][, bool $showStock = false ]) : mixed
Parameters
- $id : ModifierIdentifierInterface
- $groupId : GroupIdentifierInterface
- $name : string
- $source : string
- $type : string
- $image : string
- $pricePrefix : string = ''
- $price : float
- $selected : bool = false
- $selectable : bool = true
- $showStock : bool = false
Return values
mixed —groupId()
public
groupId() : GroupIdentifierInterface
Return values
GroupIdentifierInterface —id()
public
id() : ModifierIdentifierInterface
Return values
ModifierIdentifierInterface —image()
public
image() : string
Return values
string —isSelectable()
public
isSelectable() : bool
Return values
bool —isSelected()
public
isSelected() : bool
Return values
bool —name()
public
name() : string
Return values
string —price()
public
price() : float
Return values
float —pricePrefix()
public
pricePrefix() : string
Return values
string —showStock()
public
showStock() : bool
Return values
bool —source()
public
source() : string
Return values
string —type()
public
type() : string