CustomerLastname

Implements \CustomerLastnameInterface

Value Object

Class CustomerLastname

Represents a customer lastname

category

System

package

Customer

subpackage

ValueObjects

implements

CustomerLastnameInterface

Methods

Constructor for the class CustomerLastname.

__construct(string $p_lastname) 

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

Throws
\InvalidArgumentException

If $p_lastname is not a string.

\LengthException

If $p_lastname contains more characters than 64.

Arguments

$p_lastname

string

Customer's last name.

Returns the equivalent string value.

__toString() : string

Response

string

Equivalent string value.

strlenWrapper

strlenWrapper( $string,  $encoding = 'utf-8') 
inherited

Arguments

$string

$encoding

Properties

Customer's last name.

lastname : string
var

Type(s)

string