PHP Class ValueObjects\Web\EmailAddress

Inheritance: extends ValueObjects\StringLiteral\StringLiteral
Datei anzeigen Open project: nicolopignatelli/valueobjects Class Usage Examples

Public Methods

Method Description
__construct ( string $value ) Returns an EmailAddress object given a PHP native string as parameter.
getDomainPart ( ) : ValueObjects\Web\Domain Returns the domain part of the email address
getLocalPart ( ) : ValueObjects\StringLiteral\StringLiteral Returns the local part of the email address

Method Details

__construct() public method

Returns an EmailAddress object given a PHP native string as parameter.
public __construct ( string $value )
$value string

getDomainPart() public method

Returns the domain part of the email address
public getDomainPart ( ) : ValueObjects\Web\Domain
return ValueObjects\Web\Domain

getLocalPart() public method

Returns the local part of the email address
public getLocalPart ( ) : ValueObjects\StringLiteral\StringLiteral
return ValueObjects\StringLiteral\StringLiteral