CustomerCountryIso2
in package
implements
CustomerCountryIso2Interface
Uses
StringUtilityTrait
Value Object
Class CustomerCountryIso2
Represents a customer country ISO2 code
Tags
Interfaces, Classes and Traits
- CustomerCountryIso2Interface
- Value Object.
Table of Contents
- $iso2 : string
- Customer's ISO-2 country code.
- __construct() : mixed
- Constructor of the class CustomerCountryIso2.
- __toString() : string
- Returns the equivalent string value.
- strlenWrapper() : mixed
Properties
$iso2
Customer's ISO-2 country code.
protected
string
$iso2
Methods
__construct()
Constructor of the class CustomerCountryIso2.
public
__construct(string $p_iso2) : mixed
Validates the length and data type of the customer country ISO-2 code.
Parameters
- $p_iso2 : string
-
Customer's ISO-2 country code.
Tags
Return values
mixed —__toString()
Returns the equivalent string value.
public
__toString() : string
Return values
string —Equivalent string value.
strlenWrapper()
protected
strlenWrapper(mixed $string[, mixed $encoding = 'utf-8' ]) : mixed
Parameters
- $string : mixed
- $encoding : mixed = 'utf-8'