CustomerFirstname

Implements \CustomerFirstnameInterface

Value Object

Class CustomerFirstname

Represents a customer firstname

category

System

package

Customer

subpackage

ValueObjects

implements

CustomerFirstnameInterface

Methods

Constructor of the class CustomerFirstname.

__construct(string $p_firstname) 

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

Throws
\InvalidArgumentException

If $p_firstname is not a string.

\LengthException

If $p_firstname contains more characters than 64.

Arguments

$p_firstname

string

Customer's first 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 first name.

firstname : string
var

Type(s)

string