phpDocumentor

CustomerCountryName
in package
implements CustomerCountryNameInterface Uses StringUtilityTrait

Value Object

Class CustomerCountryName

Represents a customer country name

Tags
category

System

subpackage

ValueObjects

implements

CustomerCountryNameInterface

Interfaces, Classes and Traits

CustomerCountryNameInterface
Value Object.

Table of Contents

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

Properties

Methods

__construct()

Constructor of the class CustomerCountryName.

public __construct(string $p_name) : mixed

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

Parameters
$p_name : string

Customer's country name.

Tags
throws
InvalidArgumentException

If $p_name is not a string.

throws
LengthException

If $p_name contains more characters than 64.

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