ContactName

Implements \ContactNameInterface

Class ContactName

Contact name will be the display name for an EmailContact object.

category

System

package

Email

subpackage

ValueObjects

Methods

Constructor

__construct(string $p_contactName) 

Executes the validation checks upon the contact name.

Throws
\InvalidArgumentException

If the provided argument is not a string.

Arguments

$p_contactName

string

Contact name.

Returns the contact name as a string.

__toString() : string

Response

string

Equivalent string.

Constants

Maximum name length constant.

MAX_LENGTH
var

Properties

Contact name.

contactName : string
var

Type(s)

string