phpDocumentor

CustomerNumber
in package
implements CustomerNumberInterface Uses StringUtilityTrait

Value Object

Class CustomerNumber

Represents a customer number

Tags
category

System

subpackage

ValueObjects

implements

CustomerNumberInterface

Interfaces, Classes and Traits

CustomerNumberInterface
Value Object.

Table of Contents

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

Properties

Methods

__construct()

Constructor of the class CustomerNumber.

public __construct(string $p_number) : mixed

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

Parameters
$p_number : string

Customer's number.

Tags
throws
InvalidArgumentException

If $p_number is not a string.

throws
LengthException

If $p_lastname 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