Analyzer
FinalYes
Table of Contents
Methods
- canCalculateSeparately() : bool
- Tells if this discount can calculate separately. It means it doesn't depends on basket and other discounts.
- canCalculateSeparatelyAllDiscount() : bool
- Tells if allowed to calculate discount on basket separately.
- getInstance() : static
- Returns Singleton of Analyzer
- isContainGiftAction() : bool
- Returns true if the discount contains action with gift.
Methods
canCalculateSeparately()
Tells if this discount can calculate separately. It means it doesn't depends on basket and other discounts.
public
canCalculateSeparately(array<string|int, mixed> $discount) : bool
Parameters
- $discount : array<string|int, mixed>
-
Discount.
Return values
boolcanCalculateSeparatelyAllDiscount()
Tells if allowed to calculate discount on basket separately.
public
canCalculateSeparatelyAllDiscount() : bool
Return values
boolgetInstance()
Returns Singleton of Analyzer
public
static getInstance() : static
Return values
staticisContainGiftAction()
Returns true if the discount contains action with gift.
public
isContainGiftAction(array<string|int, mixed> $discount) : bool
Parameters
- $discount : array<string|int, mixed>
-
Discount.