CustomerNumber

Implements \CustomerNumberInterface

Value Object

Class CustomerNumber

Represents a customer number

category

System

package

Customer

subpackage

ValueObjects

implements

CustomerNumberInterface

Methods

Constructor of the class CustomerNumber.

__construct(string $p_number) 

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

Throws
\InvalidArgumentException

If $p_number is not a string.

\LengthException

If $p_lastname contains more characters than 32.

Arguments

$p_number

string

Customer's number.

Returns the equivalent string value.

__toString() : string

Response

string

Equivalent string value.

Properties