CalculationMode
extends Enum
in package
This is the applied discounts calculation mode enumerate.
Tags
Table of Contents
FIXED_AMOUNT | = 'FIXED_AMOUNT' | |
---|---|---|
FIXED_UNITS | = 'FIXED_UNITS' | |
PERCENTAGE_OVER_TOTAL | = 'PERCENTAGE_OVER_TOTAL' | |
PERCENTAGE_OVER_UNITS | = 'PERCENTAGE_OVER_UNITS' | |
getValues() | : array<string|int, mixed> | |
isValid() | Check if the given value is inside the called enumerate. | : bool |
Constants
FIXED_AMOUNT
public
mixed
FIXED_AMOUNT
= 'FIXED_AMOUNT'
FIXED_UNITS
public
mixed
FIXED_UNITS
= 'FIXED_UNITS'
PERCENTAGE_OVER_TOTAL
public
mixed
PERCENTAGE_OVER_TOTAL
= 'PERCENTAGE_OVER_TOTAL'
PERCENTAGE_OVER_UNITS
public
mixed
PERCENTAGE_OVER_UNITS
= 'PERCENTAGE_OVER_UNITS'
Methods
getValues()
public
static getValues() : array<string|int, mixed>
Return values
array<string|int, mixed> —isValid()
Check if the given value is inside the called enumerate.
public
static isValid(string $value) : bool
Parameters
- $value : string
-
value to check