CarrierType
extends Enum
in package
CarrierType enumeration class
Tags
Table of Contents
- ANGEL_DE = 'angel_de'
- CARGO_INTERNATIONAL = 'cargo_international'
- DHL = 'dhl'
- DHL_EXPRESS = 'dhl_express'
- DPAG = 'dpag'
- DPD = 'dpd'
- FEDEX = 'fedex'
- GLS = 'gls'
- GO = 'go'
- HERMES = 'hermes'
- ILOXX = 'iloxx'
- PARCEL_ONE = 'parcel_one'
- UPS = 'ups'
- $constCacheArray : mixed
- get_class_name() : string
- Returns the name of the current instance.
- 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
ANGEL_DE
public
mixed
ANGEL_DE
= 'angel_de'
CARGO_INTERNATIONAL
public
mixed
CARGO_INTERNATIONAL
= 'cargo_international'
DHL
public
mixed
DHL
= 'dhl'
DHL_EXPRESS
public
mixed
DHL_EXPRESS
= 'dhl_express'
DPAG
public
mixed
DPAG
= 'dpag'
DPD
public
mixed
DPD
= 'dpd'
FEDEX
public
mixed
FEDEX
= 'fedex'
GLS
public
mixed
GLS
= 'gls'
GO
public
mixed
GO
= 'go'
HERMES
public
mixed
HERMES
= 'hermes'
ILOXX
public
mixed
ILOXX
= 'iloxx'
PARCEL_ONE
public
mixed
PARCEL_ONE
= 'parcel_one'
UPS
public
mixed
UPS
= 'ups'
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_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
