phpDocumentor

CustomerHouseNumber
in package
implements CustomerHouseNumberInterface Uses StringUtilityTrait

Value Object

Class CustomerHouseNumber

Represents a house number

Tags
category

System

subpackage

ValueObjects

implements

CustomerHouseNumberInterface

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

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
throws
InvalidArgumentException

If $houseNumber is not a string.

throws
LengthException

If $houseNumber contains more than 64 characters.

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'
Return values
mixed

Search results