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

Properties