AddProductsParametersGroup extends ParametersGroup

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

Methods

setMode()

Sets the mode parameter for this parameters group.

public setMode(string $mode) : void
Parameters
$mode : string
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>

Search results