PHP Class Swift_Mailer_ArrayRecipientIterator, Halite

Author: Chris Corbyn
Inheritance: implements Swift_Mailer_RecipientIterator
Show file Open project: HaliteChallenge/Halite Class Usage Examples

Public Methods

Method Description
__construct ( array $recipients ) Create a new ArrayRecipientIterator from $recipients.
hasNext ( ) : boolean Returns true only if there are more recipients to send to.
nextRecipient ( ) : array Returns an array where the keys are the addresses of recipients and the values are the names. e.g. ('foo@bar' => 'Foo') or ('foo@bar' => NULL).

Method Details

__construct() public method

Create a new ArrayRecipientIterator from $recipients.
public __construct ( array $recipients )
$recipients array

hasNext() public method

Returns true only if there are more recipients to send to.
public hasNext ( ) : boolean
return boolean

nextRecipient() public method

Returns an array where the keys are the addresses of recipients and the values are the names. e.g. ('foo@bar' => 'Foo') or ('foo@bar' => NULL).
public nextRecipient ( ) : array
return array