phpDocumentor

CustomerCountryIso2
in package
implements CustomerCountryIso2Interface Uses StringUtilityTrait

Value Object

Class CustomerCountryIso2

Represents a customer country ISO2 code

Tags
category

System

subpackage

ValueObjects

implements

CustomerCountryIso2Interface

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

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
throws
InvalidArgumentException

If $p_iso2 is not a string.

throws
LengthException

If $p_iso2 contains more characters than 2.

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'
Return values
mixed

Search results