EditProductParametersGroup
extends ProductParametersGroup
in package
This is the basket model (edit product resource) parameters group class.
Table of Contents
$options | : array<string|int, mixed> | |
---|---|---|
$quantity | : int | |
$validator | : ParametersValidator | |
addOption() | Adds a new option to the array of options for this parameters group. | : void |
setOptions() | Sets an array of options as a parameter for this parameters group. | : void |
setQuantity() | Sets the quantity parameter for this parameters group. | : void |
toArray() | Returns the object data on array format. | : array<string|int, mixed> |
filter() | : array<string|int, mixed> | |
getInstantiatedValidator() | : ParametersValidator | |
getValidator() | {@inheritdoc} | : EditProductParametersValidator |
Properties
$options
protected
array<string|int, mixed>
$options
$quantity
protected
int
$quantity
$validator
protected
ParametersValidator
$validator
Methods
addOption()
Adds a new option to the array of options for this parameters group.
public
addOption(ProductOptionParametersGroup $option) : void
Parameters
- $option : ProductOptionParametersGroup
Return values
void —setOptions()
Sets an array of options as a parameter for this parameters group.
public
setOptions(array<string|int, ProductOptionParametersGroup> $options) : void
Parameters
- $options : array<string|int, ProductOptionParametersGroup>
Return values
void —setQuantity()
Sets the quantity parameter for this parameters group.
public
setQuantity(int $quantity) : void
Parameters
- $quantity : int
Return values
void —toArray()
Returns the object data on array format.
public
toArray() : array<string|int, mixed>
Return values
array<string|int, mixed> —filter()
protected
filter(array<string|int, mixed> $params) : array<string|int, mixed>
Parameters
- $params : array<string|int, mixed>
Return values
array<string|int, mixed> —getInstantiatedValidator()
protected
getInstantiatedValidator() : ParametersValidator
Return values
ParametersValidator —getValidator()
{@inheritdoc}
protected
getValidator() : EditProductParametersValidator