phpDocumentor

CustomerLastname
in package
implements CustomerLastnameInterface Uses StringUtilityTrait

Value Object

Class CustomerLastname

Represents a customer lastname

Tags
category

System

subpackage

ValueObjects

implements

CustomerLastnameInterface

Interfaces, Classes and Traits

CustomerLastnameInterface
Value Object.

Table of Contents

$lastname  : string
Customer's last name.
__construct()  : mixed
Constructor for the class CustomerLastname.
__toString()  : string
Returns the equivalent string value.
strlenWrapper()  : mixed

Properties

Methods

__construct()

Constructor for the class CustomerLastname.

public __construct(string $p_lastname) : mixed

Validates the length and the data type of the customer last name.

Parameters
$p_lastname : string

Customer's last name.

Tags
throws
InvalidArgumentException

If $p_lastname is not a string.

throws
LengthException

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