EmailAddress

Implements \EmailAddressInterface

Class EmailAddress

Represents an email address (both email address and displayed name).

category

System

package

Email

subpackage

ValueObjects

Methods

Constructor

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

Executes the validation checks for the email address.

Throws
\InvalidArgumentException

If the provided argument is not valid.

Arguments

$p_emailAddress

string

E-Mail address.

$encodeSpecialCharacters

boolean

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

Returns the email address as a string.

__toString() : string

Response

string

Equivalent string.

Constants

Defines the max length of the database field.

MAX_LENGTH
var

Properties

E-Mail address.

emailAddress : string
var

Type(s)

string