ServiceType
extends Enum
in package
ServiceType enumeration class
Tags
Table of Contents
- CARGO_INTERNATIONAL_EXPRESS = 'cargo_international_express'
- DHL_EUROPAKET = 'dhl_europaket'
- DHL_PRIO = 'dhl_prio'
- DHL_WARENPOST = 'dhl_warenpost'
- DPAG_WARENPOST = 'dpag_warenpost'
- DPAG_WARENPOST_SIGNATURE = 'dpag_warenpost_signature'
- DPAG_WARENPOST_UNTRACKED = 'dpag_warenpost_untracked'
- ECONOMY_SELECT = 'economy_select'
- GLS_EXPRESS_0800 = 'gls_express_0800'
- GLS_EXPRESS_0900 = 'gls_express_0900'
- GLS_EXPRESS_1000 = 'gls_express_1000'
- GLS_EXPRESS_1200 = 'gls_express_1200'
- GLS_PICK_AND_SHIP = 'gls_pick_and_ship'
- ONE_DAY = 'one_day'
- ONE_DAY_EARLY = 'one_day_early'
- RETURNS = 'returns'
- SAME_DAY = 'same_day'
- STANDARD = 'standard'
- UPS_EXPEDITED = 'ups_expedited'
- UPS_EXPRESS_1200 = 'ups_express_1200'
- $constCacheArray : mixed
- get_class_name() : string
- Returns the name of the current instance.
- get_default_service() : string
- get_name_by_value() : mixed
- is_valid_value() : bool
- Validates a given $enum_value against a given $enum_type.
- to_string() : string
- For a given $enum_type, give the complete string representation for the given $enum_value (class::const)
- __construct() : void
- Due to singleton pattern make sure there are never any instances created.
Constants
CARGO_INTERNATIONAL_EXPRESS
public
mixed
CARGO_INTERNATIONAL_EXPRESS
= 'cargo_international_express'
DHL_EUROPAKET
public
mixed
DHL_EUROPAKET
= 'dhl_europaket'
DHL_PRIO
public
mixed
DHL_PRIO
= 'dhl_prio'
DHL_WARENPOST
public
mixed
DHL_WARENPOST
= 'dhl_warenpost'
DPAG_WARENPOST
public
mixed
DPAG_WARENPOST
= 'dpag_warenpost'
DPAG_WARENPOST_SIGNATURE
public
mixed
DPAG_WARENPOST_SIGNATURE
= 'dpag_warenpost_signature'
DPAG_WARENPOST_UNTRACKED
public
mixed
DPAG_WARENPOST_UNTRACKED
= 'dpag_warenpost_untracked'
ECONOMY_SELECT
public
mixed
ECONOMY_SELECT
= 'economy_select'
GLS_EXPRESS_0800
public
mixed
GLS_EXPRESS_0800
= 'gls_express_0800'
GLS_EXPRESS_0900
public
mixed
GLS_EXPRESS_0900
= 'gls_express_0900'
GLS_EXPRESS_1000
public
mixed
GLS_EXPRESS_1000
= 'gls_express_1000'
GLS_EXPRESS_1200
public
mixed
GLS_EXPRESS_1200
= 'gls_express_1200'
GLS_PICK_AND_SHIP
public
mixed
GLS_PICK_AND_SHIP
= 'gls_pick_and_ship'
ONE_DAY
public
mixed
ONE_DAY
= 'one_day'
ONE_DAY_EARLY
public
mixed
ONE_DAY_EARLY
= 'one_day_early'
RETURNS
public
mixed
RETURNS
= 'returns'
SAME_DAY
public
mixed
SAME_DAY
= 'same_day'
STANDARD
public
mixed
STANDARD
= 'standard'
UPS_EXPEDITED
public
mixed
UPS_EXPEDITED
= 'ups_expedited'
UPS_EXPRESS_1200
public
mixed
UPS_EXPRESS_1200
= 'ups_express_1200'
Properties
$constCacheArray
private
static mixed
$constCacheArray
= NULL
Methods
get_class_name()
Returns the name of the current instance.
public
static get_class_name() : string
Return values
string —get_default_service()
public
static get_default_service() : string
Return values
string —get_name_by_value()
public
static get_name_by_value(mixed $enum_type, mixed $enum_value) : mixed
Parameters
- $enum_type : mixed
- $enum_value : mixed
Return values
mixed —is_valid_value()
Validates a given $enum_value against a given $enum_type.
public
static is_valid_value(string $enum_type, string $enum_value) : bool
Parameters
- $enum_type : string
- $enum_value : string
Return values
bool —to_string()
For a given $enum_type, give the complete string representation for the given $enum_value (class::const)
public
static to_string(string $enum_type, string $enum_value) : string
Parameters
- $enum_type : string
- $enum_value : string
Return values
string —__construct()
Due to singleton pattern make sure there are never any instances created.
private
final __construct() : void
