AddBundleParametersGroup
extends BundleParametersGroup
in package
Uses
IdentifiableItemsParametersGroupTrait
This is the basket model (add bundle resource) parameters group class.
Table of Contents
$id | : int | |
---|---|---|
$items | : array<string|int, mixed> | |
$quantity | : int | |
$validator | : ParametersValidator | |
addItem() | Adds a new items to the array of items for this parameters group. | : void |
setId() | Sets the internal identifier parameter for this parameters group. | : void |
setItems() | Sets an array of items 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} | : AddBundleParametersValidator |
Properties
$id
protected
int
$id
$items
protected
array<string|int, mixed>
$items
$quantity
protected
int
$quantity
$validator
protected
ParametersValidator
$validator
Methods
addItem()
Adds a new items to the array of items for this parameters group.
public
addItem(BundleItemParametersGroup $item) : void
Parameters
- $item : BundleItemParametersGroup
Return values
void —setId()
Sets the internal identifier parameter for this parameters group.
public
setId(int $id) : void
Parameters
- $id : int
Return values
void —setItems()
Sets an array of items as a parameter for this parameters group.
public
setItems(array<string|int, BundleItemParametersGroup> $items) : void
Parameters
- $items : array<string|int, BundleItemParametersGroup>
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() : AddBundleParametersValidator