phpDocumentor

ContactName
in package
implements ContactNameInterface

Class ContactName

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

Tags
category

System

subpackage

ValueObjects

Interfaces, Classes and Traits

ContactNameInterface
Interface ContactNameInterface

Table of Contents

MAX_LENGTH  = 128
Maximum name length constant.
$contactName  : string
Contact name.
__construct()  : mixed
Constructor
__toString()  : string
Returns the contact name as a string.

Constants

MAX_LENGTH

Maximum name length constant.

public int MAX_LENGTH = 128

Properties

Methods

__construct()

Constructor

public __construct(string $p_contactName) : mixed

Executes the validation checks upon the contact name.

Parameters
$p_contactName : string

Contact name.

Tags
throws
InvalidArgumentException

If the provided argument is not a string.

Return values
mixed

__toString()

Returns the contact name as a string.

public __toString() : string
Return values
string

Equivalent string.

Search results