CustomerHouseNumber
in package
implements
CustomerHouseNumberInterface
Uses
StringUtilityTrait
Value Object
Class CustomerHouseNumber
Represents a house number
Tags
Interfaces, Classes and Traits
- CustomerHouseNumberInterface
- Value Object
Table of Contents
- $houseNumber : string
- House number.
- __construct() : mixed
- Constructor of the class CustomerHouseNumber.
- __toString() : string
- Returns the equivalent string value.
- strlenWrapper() : mixed
Properties
$houseNumber
House number.
protected
string
$houseNumber
Methods
__construct()
Constructor of the class CustomerHouseNumber.
public
__construct(string $houseNumber) : mixed
Validates the length and the data type of a house number.
Parameters
- $houseNumber : string
-
House number.
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'