CustomerCity

Implements \CustomerCityInterface

Value Object

Class CustomerCity

Represents a customer city

category

System

package

Customer

subpackage

ValueObjects

implements

CustomerCityInterface

Methods

Constructor of the class CustomerCity.

__construct(string $p_city) 

Validates the length and the data type of the customer city.

Throws
\InvalidArgumentException

If $p_city is not a string.

\LengthException

If $p_city contains more characters than 32.

Arguments

$p_city

string

Customer's city.

Returns the equivalent string value.

__toString() : string

Response

string

Equivalent string value.

Properties