CustomerLastname
in package
implements
CustomerLastnameInterface
Uses
StringUtilityTrait
Value Object
Class CustomerLastname
Represents a customer lastname
Tags
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
$lastname
Customer's last name.
protected
string
$lastname
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
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'