CustomerEmail

Implements \CustomerEmailInterface

Value Object

Class CustomerEmail

Represents a customer email

category

System

package

Customer

subpackage

ValueObjects

implements

CustomerEmailInterface

Methods

Constructor of the class CustomerEmail.

__construct(string $p_email, boolean $encodeSpecialCharacters = true) 

Validates the data type and format of the customer email.

Throws
\InvalidArgumentException

If $p_email is not a string.

\UnexpectedValueException

If $p_email is not a valid e-mail address.

Arguments

$p_email

string

Customer's E-Mail address.

$encodeSpecialCharacters

boolean

Optional (true), whether to encode the special unicode characters to ASCII.

Returns the equivalent string value.

__toString() : string

Response

string

Equivalent string value.

Properties

Customer's E-Mail address.

email : string
var

Type(s)

string