ProductOptionParametersGroup
extends ParametersGroup
in package
Uses
IdentifiableItemsParametersGroupTrait
This is the basket model (edit product resource) parameters group class.
Table of Contents
$id | : int | |
---|---|---|
$validator | : ParametersValidator | |
$values | : array<string|int, mixed> | |
addValue() | Adds a new value to the array of values for this parameters group. | : void |
setId() | Sets the internal identifier parameter for this parameters group. | : void |
setValues() | Sets an array of values as a 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() | : EditProductOptionParametersValidator |
Properties
$id
protected
int
$id
$validator
protected
ParametersValidator
$validator
$values
protected
array<string|int, mixed>
$values
Methods
addValue()
Adds a new value to the array of values for this parameters group.
public
addValue(ProductOptionValueParametersGroup $value) : void
Parameters
- $value : ProductOptionValueParametersGroup
Return values
void —setId()
Sets the internal identifier parameter for this parameters group.
public
setId(int $id) : void
Parameters
- $id : int
Return values
void —setValues()
Sets an array of values as a parameter for this parameters group.
public
setValues(array<string|int, mixed> $values) : void
Parameters
- $values : array<string|int, mixed>
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()
protected
getValidator() : EditProductOptionParametersValidator