AddProductsParametersGroup
extends ParametersGroup
in package
This is the basket model (add products resource) parameters group class.
Table of Contents
$mode | : string | |
---|---|---|
$products | : array<string|int, mixed> | |
$validator | : ParametersValidator | |
addProduct() | Adds a new product to the array of products for this parameters group. | : void |
setMode() | Sets the mode parameter for this parameters group. | : void |
setProducts() | Sets an array of AddProductParametersGroup | : void |
toArray() | Returns the object data on array format. | : array<string|int, mixed> |
filter() | : array<string|int, mixed> | |
getInstantiatedValidator() | : ParametersValidator | |
getValidator() | : AddProductsParametersValidator |
Properties
$mode
protected
string
$mode
$products
protected
array<string|int, mixed>
$products
$validator
protected
ParametersValidator
$validator
Methods
addProduct()
Adds a new product to the array of products for this parameters group.
public
addProduct(AddProductParametersGroup $product) : void
Parameters
- $product : AddProductParametersGroup
Return values
void —setMode()
Sets the mode parameter for this parameters group.
public
setMode(string $mode) : void
Parameters
- $mode : string
Return values
void —setProducts()
Sets an array of AddProductParametersGroup
public
setProducts(array<string|int, AddProductParametersGroup> $products) : void
Parameters
- $products : array<string|int, AddProductParametersGroup>
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() : AddProductsParametersValidator