ShippingCalculation
extends Enum
in package
This is the shipping calculation enumerate.
Tags
Table of Contents
BY_UNITS | = 'BY_UNITS' | |
---|---|---|
BY_WEIGHT | = 'BY_WEIGHT' | |
getValues() | : array<string|int, mixed> | |
isValid() | Check if the given value is inside the called enumerate. | : bool |
Constants
BY_UNITS
public
mixed
BY_UNITS
= 'BY_UNITS'
BY_WEIGHT
public
mixed
BY_WEIGHT
= 'BY_WEIGHT'
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