phpDocumentor

CustomerCallNumber
in package
implements CustomerCallNumberInterface Uses StringUtilityTrait

Value Object

Class CustomerCallNumber

Represents a phone or fax number

Tags
category

System

subpackage

ValueObjects

implements

CustomerCallNumberInterface

Interfaces, Classes and Traits

CustomerCallNumberInterface
Value Object.

Table of Contents

$callNumber  : string
Customer's call number.
__construct()  : mixed
Constructor of the class CustomerCallNumber.
__toString()  : string
Returns the equivalent string value.
strlenWrapper()  : mixed

Properties

Methods

__construct()

Constructor of the class CustomerCallNumber.

public __construct(string $p_callNumber) : mixed

Validates the length and data type of the customer call number.

Parameters
$p_callNumber : string

Customer's call number.

Tags
throws
InvalidArgumentException

If $p_callNumber is not a string

throws
LengthException

If $p_callNumber contains more characters than 32.

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