CustomerStreet
in package
implements
CustomerStreetInterface
Uses
StringUtilityTrait
Value Object
Class CustomerStreet
Represents a customer street
Tags
Interfaces, Classes and Traits
- CustomerStreetInterface
- Value Object.
Table of Contents
- $street : string
- Customer's street.
- __construct() : mixed
- Constructor of the class CustomerStreet.
- __toString() : string
- Returns the equivalent string value.
- strlenWrapper() : mixed
Properties
$street
Customer's street.
protected
string
$street
Methods
__construct()
Constructor of the class CustomerStreet.
public
__construct(string $p_street) : mixed
Validates the length and the data type of the street name.
Parameters
- $p_street : string
-
Customer's street.
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'