CustomerCallNumber

Implements \CustomerCallNumberInterface

Value Object

Class CustomerCallNumber

Represents a phone or fax number

category

System

package

Customer

subpackage

ValueObjects

implements

CustomerCallNumberInterface

Methods

Constructor of the class CustomerCallNumber.

__construct(string $p_callNumber) 

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

Throws
\InvalidArgumentException

If $p_callNumber is not a string

\LengthException

If $p_callNumber contains more characters than 32.

Arguments

$p_callNumber

string

Customer's call number.

Returns the equivalent string value.

__toString() : string

Response

string

Equivalent string value.

Properties