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.

strlenWrapper

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

Arguments

$string

$encoding

Properties

Customer's number.

number : string
var

Type(s)

string