Class MutableRecipient
A mutable recipient object.
-
Avisota\Recipient\MutableRecipient
implements
Avisota\Recipient\RecipientInterface
Methods summary
public
|
#
__construct( mixed $email, array $details = array() )
Parameters
- $email
mixed $email
- $details
array $details
|
public
string
|
#
getEmail( )
Get the recipient email address.
Get the recipient email address.
Returns
string
Implementation of
|
public
|
#
setEmail( mixed $email )
Set the email address.
Parameters
Throws
|
public
boolean
|
#
hasDetails( )
Check if this recipient has personal data.
Check if this recipient has personal data.
Returns
boolean
Implementation of
|
public
mixed
|
#
get( string $name )
Get a single personal data field value. Return null if the field does not
exists.
Get a single personal data field value. Return null if the field does not
exists.
Parameters
Returns
mixed
Implementation of
|
public
|
#
set( string $name, mixed $value )
Set a personal data field.
Set a personal data field.
Parameters
- $name
string $name The name of the field.
- $value
mixed $value The value of the field. A value of <span
class="php-keyword1">null</span> delete the field.
|
public
array
|
#
getDetails( )
Get all personal data values as associative array.
Get all personal data values as associative array.
Returns
array
Implementation of
|
public
|
#
setDetails( array $details )
Set multiple personal data fields.
Set multiple personal data fields.
Parameters
|
public
array
|
#
getKeys( )
Get all personal data keys.
Get all personal data keys.
Returns
array
Implementation of
|
Properties summary
protected
array
|
$data
|
array() |
|