CustomerCity
in package
implements
CustomerCityInterface
Uses
StringUtilityTrait
Value Object
Class CustomerCity
Represents a customer city
Tags
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
$city
Customer's city.
protected
string
$city
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
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'