CustomerNumber
in package
implements
CustomerNumberInterface
Uses
StringUtilityTrait
Value Object
Class CustomerNumber
Represents a customer number
Tags
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
$number
Customer's number.
protected
string
$number
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
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'