Class Swift_Mailer_ArrayRecipientIterator
Inheritance | Swift_Mailer_ArrayRecipientIterator |
---|---|
Implements | Swift_Mailer_RecipientIterator |
Wraps a standard PHP array in an iterator.
Public Methods
Method | Description | Defined By |
---|---|---|
__construct() | Create a new ArrayRecipientIterator from $recipients. | Swift_Mailer_ArrayRecipientIterator |
hasNext() | Returns true only if there are more recipients to send to. | Swift_Mailer_ArrayRecipientIterator |
nextRecipient() | 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). | Swift_Mailer_ArrayRecipientIterator |
Method Details
Create a new ArrayRecipientIterator from $recipients.
public void __construct ( array $recipients ) | ||
$recipients | array |
Returns true only if there are more recipients to send to.
public bool hasNext ( ) |
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 array nextRecipient ( ) |