CustomerCountryIso3

Implements \CustomerCountryIso3Interface

Value Object

Class CustomerCountryIso3

Represents a customer country ISO3 code

category

System

package

Customer

subpackage

ValueObjects

implements

CustomerCountryIso3Interface

Methods

Constructor of the class CustomerCountryIso3.

__construct(string $p_iso3) 

Validates the length and data type of the customer country ISO-3 code.

Throws
\InvalidArgumentException

If $p_iso3 is not a string.

\LengthException

If $p_iso3 contains more characters than 3.

Arguments

$p_iso3

string

Customer's ISO-3 country code.

Returns the equivalent string value.

__toString() : string

Response

string

Equivalent string value.

strlenWrapper

strlenWrapper( $string,  $encoding = 'utf-8') 
inherited

Arguments

$string

$encoding

Properties

Customer's ISO-3 country code.

iso3 : string
var

Type(s)

string