EmailContact
extends Contact
in package
implements
IEmailContact, Stringable
Tags
Table of Contents
Interfaces
- IEmailContact
- Stringable
Properties
- $email : string
- $name : string
- $hashCode : int
- $hashCounter : int
Methods
- __call() : mixed
- __callStatic() : mixed
- __construct() : mixed
- __destruct() : mixed
- __get() : mixed
- __toString() : string
- equals() : bool
- extends() : bool
- fromString() : EmailContact|null
- Creates an EmailContact instance from a provided string. The string MUST either being in the format local-part@domain or 'Name <local-part@domain>'
- getEmail() : string
- getEmailUser() : string
- getName() : string
- getReflection() : ReflectionClass
- init() : mixed
- setEmail() : mixed
- setName() : mixed
Properties
protected
string
$email
$name
protected
string
$name
$hashCode
private
int
$hashCode
$hashCounter
private
static int
$hashCounter
= 0
Methods
__call()
public
__call(string $method, array<string|int, mixed> $arguments) : mixed
Parameters
- $method : string
- $arguments : array<string|int, mixed>
Tags
__callStatic()
public
static __callStatic(mixed $method, array<string|int, mixed> $arguments) : mixed
Parameters
- $method : mixed
- $arguments : array<string|int, mixed>
__construct()
public
__construct(string $email, string $name) : mixed
Parameters
- $email : string
- $name : string
__destruct()
public
__destruct() : mixed
__get()
public
__get(string $property) : mixed
Parameters
- $property : string
__toString()
public
__toString() : string
Return values
stringequals()
public
equals(EmailContact $ec) : bool
Parameters
- $ec : EmailContact
Return values
boolextends()
public
extends(ReflectionClass $reflector) : bool
Parameters
- $reflector : ReflectionClass
Return values
boolfromString()
Creates an EmailContact instance from a provided string. The string MUST either being in the format local-part@domain or 'Name <local-part@domain>'
public
static fromString(string $email_contact) : EmailContact|null
Parameters
- $email_contact : string
Return values
EmailContact|nullgetEmail()
public
getEmail() : string
Tags
Return values
stringgetEmailUser()
public
getEmailUser() : string
Return values
stringgetName()
public
getName() : string
Tags
Return values
stringgetReflection()
public
getReflection() : ReflectionClass
Return values
ReflectionClassinit()
protected
init() : mixed
setEmail()
private
setEmail(string $email) : mixed
Parameters
- $email : string
Tags
setName()
private
setName(string $name) : mixed
Parameters
- $name : string