BasketItemFiller
An object for correctly filling the basket item.
When filling in, it performs type casting and checks for changes in values.
Table of Contents
Methods
- __construct() : mixed
- fill() : void
- Fills the basket item with the specified values.
- getChanged() : bool
- Has the basket item changed or not?
- getResult() : Result
- The result of the work.
Methods
__construct()
public
__construct(BasketItem $basketItem) : mixed
Parameters
- $basketItem : BasketItem
fill()
Fills the basket item with the specified values.
public
fill(array<string|int, mixed> $fields) : void
The result of the work can be obtained using the methods getChanged
and `getResult'.
Parameters
- $fields : array<string|int, mixed>
getChanged()
Has the basket item changed or not?
public
getChanged() : bool
Return values
boolgetResult()
The result of the work.
public
getResult() : Result
Contains errors in filling the basket item.