phpDocumentor

CustomerCountryZoneName
in package
implements CustomerCountryZoneNameInterface Uses StringUtilityTrait

Value Object

Class CustomerCountryZoneName

Represents a customer country zone name

Tags
category

System

subpackage

ValueObjects

implements

CustomerCountryZoneNameInterface

Interfaces, Classes and Traits

CustomerCountryZoneNameInterface
Value Object.

Table of Contents

$name  : string
Customer's country zone name.
__construct()  : mixed
Constructor of the class CustomerCountryZoneName.
__toString()  : string
Returns the equivalent string value.
strlenWrapper()  : mixed

Properties

Methods

__construct()

Constructor of the class CustomerCountryZoneName.

public __construct(string $p_name) : mixed

Validates the length and the data type of the customer country zone name.

Parameters
$p_name : string

Customer's country zone name.

Tags
throws
InvalidArgumentException

If $p_name is not a string.

throws
LengthException

If $p_name 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