CustomerCountryName
in package
implements
CustomerCountryNameInterface
Uses
StringUtilityTrait
Value Object
Class CustomerCountryName
Represents a customer country name
Tags
Interfaces, Classes and Traits
- CustomerCountryNameInterface
- Value Object.
Table of Contents
- $name : string
- Customer's country name.
- __construct() : mixed
- Constructor of the class CustomerCountryName.
- __toString() : string
- Returns the equivalent string value.
- asString() : string
- Returns the country name.
- strlenWrapper() : mixed
Properties
$name
Customer's country name.
protected
string
$name
Methods
__construct()
Constructor of the class CustomerCountryName.
public
__construct(string $p_name) : mixed
Validates the length and data type of the customer country name.
Parameters
- $p_name : string
-
Customer's country name.
Tags
Return values
mixed —__toString()
Returns the equivalent string value.
public
__toString() : string
Return values
string —Equivalent string value.
asString()
Returns the country name.
public
asString() : string
Return values
string —strlenWrapper()
protected
strlenWrapper(mixed $string[, mixed $encoding = 'utf-8' ]) : mixed
Parameters
- $string : mixed
- $encoding : mixed = 'utf-8'