DiscountType extends Enum
in package

This is the discount type enumerate.

Tags
see
Enum

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

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'

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

Return values
bool

Search results