DiscountType
extends Enum
in package
This is the discount type enumerate.
Tags
Table of Contents
AMOUNT | = 'AMOUNT' | |
---|---|---|
GIFT | = 'GIFT' | |
MXN | = 'MXN' | |
PERCENT_N_UNIT | = 'PERCENT_N_UNIT' | |
REWARD_POINTS | = 'REWARD_POINTS' | |
SELECTABLE_GIFT | = 'SELECTABLE_GIFT' | |
UNIT | = 'UNIT' | |
getValues() | : array<string|int, mixed> | |
isValid() | Check if the given value is inside the called enumerate. | : bool |
Constants
AMOUNT
public
mixed
AMOUNT
= 'AMOUNT'
GIFT
public
mixed
GIFT
= 'GIFT'
MXN
public
mixed
MXN
= 'MXN'
PERCENT_N_UNIT
public
mixed
PERCENT_N_UNIT
= 'PERCENT_N_UNIT'
REWARD_POINTS
public
mixed
REWARD_POINTS
= 'REWARD_POINTS'
SELECTABLE_GIFT
public
mixed
SELECTABLE_GIFT
= 'SELECTABLE_GIFT'
UNIT
public
mixed
UNIT
= 'UNIT'
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