phpDocumentor

CustomerCountryIso3
in package
implements CustomerCountryIso3Interface Uses StringUtilityTrait

Value Object

Class CustomerCountryIso3

Represents a customer country ISO3 code

Tags
category

System

subpackage

ValueObjects

implements

CustomerCountryIso3Interface

Interfaces, Classes and Traits

CustomerCountryIso3Interface
Value Object.

Table of Contents

$iso3  : string
Customer's ISO-3 country code.
__construct()  : mixed
Constructor of the class CustomerCountryIso3.
__toString()  : string
Returns the equivalent string value.
strlenWrapper()  : mixed

Properties

Methods

__construct()

Constructor of the class CustomerCountryIso3.

public __construct(string $p_iso3) : mixed

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

Parameters
$p_iso3 : string

Customer's ISO-3 country code.

Tags
throws
InvalidArgumentException

If $p_iso3 is not a string.

throws
LengthException

If $p_iso3 contains more characters than 3.

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