phpDocumentor

CustomerCountryZoneIsoCode
in package
implements CustomerCountryZoneIsoCodeInterface Uses StringUtilityTrait

Value Object

Class CustomerCountryZoneIsoCode

Represents a customer country zone ISO code

Tags
category

System

subpackage

ValueObjects

implements

CustomerCountryZoneIsoCodeInterface

Interfaces, Classes and Traits

CustomerCountryZoneIsoCodeInterface
Value Object.

Table of Contents

$isoCode  : string
Customer's country zone ISO code.
__construct()  : mixed
Constructor of the class CustomerCountryZoneIsoCode.
__toString()  : string
Returns the equivalent string value.
strlenWrapper()  : mixed

Properties

Methods

__construct()

Constructor of the class CustomerCountryZoneIsoCode.

public __construct(string $p_isoCode) : mixed

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

Parameters
$p_isoCode : string

Customer's country zone ISO code.

Tags
throws
InvalidArgumentException

If $p_isoCode is not a string.

throws
LengthException

If $p_isoCode contains more characters than 32.

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