phpDocumentor

CustomerFirstname
in package
implements CustomerFirstnameInterface Uses StringUtilityTrait

Value Object

Class CustomerFirstname

Represents a customer firstname

Tags
category

System

subpackage

ValueObjects

implements

CustomerFirstnameInterface

Interfaces, Classes and Traits

CustomerFirstnameInterface
Value Object.

Table of Contents

$firstname  : string
Customer's first name.
__construct()  : mixed
Constructor of the class CustomerFirstname.
__toString()  : string
Returns the equivalent string value.
strlenWrapper()  : mixed

Properties

Methods

__construct()

Constructor of the class CustomerFirstname.

public __construct(string $p_firstname) : mixed

Validates the length and the data type of a customer firstname.

Parameters
$p_firstname : string

Customer's first name.

Tags
throws
InvalidArgumentException

If $p_firstname is not a string.

throws
LengthException

If $p_firstname contains more characters than 64.

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