CustomerHouseNumber

Implements \CustomerHouseNumberInterface

Value Object

Class CustomerHouseNumber

Represents a house number

category

System

package

Customer

subpackage

ValueObjects

implements

CustomerHouseNumberInterface

Methods

Constructor of the class CustomerHouseNumber.

__construct(string $houseNumber) 

Validates the length and the data type of a house number.

Throws
\InvalidArgumentException

If $houseNumber is not a string.

\LengthException

If $houseNumber contains more than 64 characters.

Arguments

$houseNumber

string

House number.

Returns the equivalent string value.

__toString() : string

Response

string

Equivalent string value.

strlenWrapper

strlenWrapper( $string,  $encoding = 'utf-8') 
inherited

Arguments

$string

$encoding

Properties

House number.

houseNumber : string
var

Type(s)

string