phpDocumentor

CustomerCity
in package
implements CustomerCityInterface Uses StringUtilityTrait

Value Object

Class CustomerCity

Represents a customer city

Tags
category

System

subpackage

ValueObjects

implements

CustomerCityInterface

Interfaces, Classes and Traits

CustomerCityInterface
Value Object.

Table of Contents

$city  : string
Customer's city.
__construct()  : mixed
Constructor of the class CustomerCity.
__toString()  : string
Returns the equivalent string value.
strlenWrapper()  : mixed

Properties

Methods

__construct()

Constructor of the class CustomerCity.

public __construct(string $p_city) : mixed

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

Parameters
$p_city : string

Customer's city.

Tags
throws
InvalidArgumentException

If $p_city is not a string.

throws
LengthException

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