CalculationMode extends Enum
in package

This is the applied discounts calculation mode enumerate.

Tags
see
Enum

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

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

Return values
bool

Search results