CustomerCountryName

Implements \CustomerCountryNameInterface

Value Object

Class CustomerCountryName

Represents a customer country name

category

System

package

Customer

subpackage

ValueObjects

implements

CustomerCountryNameInterface

Methods

Constructor of the class CustomerCountryName.

__construct(string $p_name) 

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

Throws
\InvalidArgumentException

If $p_name is not a string.

\LengthException

If $p_name contains more characters than 64.

Arguments

$p_name

string

Customer's country name.

Returns the equivalent string value.

__toString() : string

Response

string

Equivalent string value.

Returns the country name.

asString() : string

Response

string

strlenWrapper

strlenWrapper( $string,  $encoding = 'utf-8') 
inherited

Arguments

$string

$encoding

Properties

Customer's country name.

name : string
var

Type(s)

string