Manager
FinalYes
Table of Contents
Methods
- getFirstPredictionTextByProduct() : string|null
- Returns first prediction which has user by current basket.
- getInstance() : Manager
- Returns Singleton of Manager
- getUserId() : int
- setUserId() : $this
Methods
getFirstPredictionTextByProduct()
Returns first prediction which has user by current basket.
public
getFirstPredictionTextByProduct(Basket $basket, array<string|int, mixed> $product[, array<string|int, mixed> $options = [] ]) : string|null
Parameters
- $basket : Basket
-
Basket.
- $product : array<string|int, mixed>
-
Target product.
- $options : array<string|int, mixed> = []
-
Config.
Tags
Return values
string|nullgetInstance()
Returns Singleton of Manager
public
static getInstance() : Manager
Return values
ManagergetUserId()
public
getUserId() : int
Return values
intsetUserId()
public
setUserId(int $userId) : $this
Parameters
- $userId : int