\Swift_Mailer_ArrayRecipientIterator
Wraps a standard PHP array in an iterator.
- Author: Chris Corbyn
Synopsis
class Swift_Mailer_ArrayRecipientIterator
implements
Swift_Mailer_RecipientIterator
{
- // members
- private array $_recipients;
- // methods
- public void __construct()
- public boolean hasNext()
- public array nextRecipient()
Hierarchy
Implements
Members
private
- $_recipients
—
array
The list of recipients.
Methods
public
- __construct() — Create a new ArrayRecipientIterator from $recipients.
- hasNext() — Returns true only if there are more recipients to send to.
- 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)