Class EmailAddress
Class EmailAddress
Represents an email address (both email address and displayed name).
-
EmailAddress
implements
EmailAddressInterface
Methods summary
public
__construct( string $p_emailAddress, boolean $encodeSpecialCharacters = true )
Constructor
Executes the validation checks for the email address.
Parameters
$p_emailAddress
- E-Mail address.
$encodeSpecialCharacters
- Optional (true), whether to encode the special unicode characters to ASCII.
Throws
InvalidArgumentException
If the provided argument is not valid.
public
__toString( void )
: string
Returns the email address as a string.
Returns the email address as a string.
Returns
string
Equivalent string.
Implementation of
Constants summary
MAX_LENGTH
: integer
Defines the max length of the database field.
Defines the max length of the database field.
128
Properties summary